Skip to content

Commit

Permalink
Test checkstyle fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rozza committed Feb 28, 2020
1 parent c77614d commit 058c62c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ void testASimpleProducerSmokeTest() {
props.put(ProducerConfig.ACKS_CONFIG, "all");
props.put(ProducerConfig.ENABLE_IDEMPOTENCE_CONFIG, "true");

try(KafkaProducer<Integer, String> producer = new KafkaProducer<>(props)) {
try (KafkaProducer<Integer, String> producer = new KafkaProducer<>(props)) {
producer.initTransactions();
producer.beginTransaction();

Expand Down Expand Up @@ -86,7 +86,7 @@ void testSinkSavesAvroDataToMongoDB() {
producerProps.put(ProducerConfig.VALUE_SERIALIZER_CLASS_CONFIG, "io.confluent.kafka.serializers.KafkaAvroSerializer");
producerProps.put(KafkaAvroSerializerConfig.SCHEMA_REGISTRY_URL_CONFIG, KAFKA.schemaRegistryUrl());

try(KafkaProducer<String, TweetMsg> producer = new KafkaProducer<>(producerProps)) {
try (KafkaProducer<String, TweetMsg> producer = new KafkaProducer<>(producerProps)) {
producer.initTransactions();
producer.beginTransaction();
tweets.forEach(tweet -> producer.send(new ProducerRecord<>(topicName, tweet)));
Expand Down

0 comments on commit 058c62c

Please sign in to comment.