From c8e5e507f420d54c0fa9bd493973db731cd37d2a Mon Sep 17 00:00:00 2001 From: Mahmoud Ben Hassine Date: Fri, 27 Nov 2020 23:17:56 +0100 Subject: [PATCH] Polish contribution feb46fd3f74716db42e2d34639d4a6952e7267e5 * Update year in license header * Use "this" keyword where appropriate --- .../springframework/batch/item/kafka/KafkaItemWriter.java | 2 +- .../batch/item/kafka/KafkaItemWriterTests.java | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/kafka/KafkaItemWriter.java b/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/kafka/KafkaItemWriter.java index cf12328c2..75c6f2b04 100644 --- a/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/kafka/KafkaItemWriter.java +++ b/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/kafka/KafkaItemWriter.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 the original author or authors. + * Copyright 2019-2020 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/kafka/KafkaItemWriterTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/kafka/KafkaItemWriterTests.java index ad24c3fd2..cab3bb864 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/kafka/KafkaItemWriterTests.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/kafka/KafkaItemWriterTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 the original author or authors. + * Copyright 2019-2020 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -111,9 +111,9 @@ public class KafkaItemWriterTests { this.kafkaTemplate.sendDefault(key, value); } }; - kafkaItemWriter.setKafkaTemplate(kafkaTemplate); + kafkaItemWriter.setKafkaTemplate(this.kafkaTemplate); kafkaItemWriter.writeKeyValue("k", "v"); - verify(kafkaTemplate).sendDefault("k", "v"); + verify(this.kafkaTemplate).sendDefault("k", "v"); } static class KafkaItemKeyMapper implements Converter {