Skip to content

Commit 5c1a608

Browse files
committed
Polish contribution feb46fd
* Update year in license header * Use "this" keyword where appropriate
1 parent 644e243 commit 5c1a608

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

spring-batch-infrastructure/src/main/java/org/springframework/batch/item/kafka/KafkaItemWriter.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2019 the original author or authors.
2+
* Copyright 2019-2020 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

spring-batch-infrastructure/src/test/java/org/springframework/batch/item/kafka/KafkaItemWriterTests.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2019 the original author or authors.
2+
* Copyright 2019-2020 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -111,9 +111,9 @@ protected void writeKeyValue(String key, String value) {
111111
this.kafkaTemplate.sendDefault(key, value);
112112
}
113113
};
114-
kafkaItemWriter.setKafkaTemplate(kafkaTemplate);
114+
kafkaItemWriter.setKafkaTemplate(this.kafkaTemplate);
115115
kafkaItemWriter.writeKeyValue("k", "v");
116-
verify(kafkaTemplate).sendDefault("k", "v");
116+
verify(this.kafkaTemplate).sendDefault("k", "v");
117117
}
118118

119119
static class KafkaItemKeyMapper implements Converter<String, String> {

0 commit comments

Comments
 (0)