Fix trailing whitespaces after previous merge

This commit is contained in:
Artem Bilan
2019-10-30 09:50:47 -04:00
parent adb2f9a231
commit f5bcaca16d

View File

@@ -41,7 +41,7 @@ public class SeekToCurrentErrorHandler implements ContainerAwareErrorHandler {
@Override
public void handle(Exception thrownException, List<ConsumerRecord<?, ?>> records,
Consumer<?, ?> consumer, MessageListenerContainer container) {
if (thrownException instanceof SerializationException) {
throw new IllegalStateException("This error handler cannot process 'SerializationException's directly, "
+ "please consider configuring an 'ErrorHandlingDeserializer2' in the value and/or key "
@@ -50,7 +50,7 @@ public class SeekToCurrentErrorHandler implements ContainerAwareErrorHandler {
Map<TopicPartition, Long> offsets = new LinkedHashMap<>();
records.forEach(r ->
offsets.computeIfAbsent(new TopicPartition(r.topic(), r.partition()), k -> r.offset()));
offsets.computeIfAbsent(new TopicPartition(r.topic(), r.partition()), k -> r.offset()));
offsets.forEach(consumer::seek);
throw new KafkaException("Seek to current after exception", thrownException);
}