Skip to content

Commit 58aa8b1

Browse files
committed
GH-2432: Remove Unnecessary Variable
1 parent 9850af5 commit 58aa8b1

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

spring-kafka/src/main/java/org/springframework/kafka/core/KafkaAdmin.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -250,8 +250,7 @@ private Collection<NewTopic> newTopics() {
250250
newTopicsMap.remove(entry.getKey());
251251
}
252252
}
253-
Collection<NewTopic> newTopics = new ArrayList<>(newTopicsMap.values());
254-
return newTopics;
253+
return new ArrayList<>(newTopicsMap.values());
255254
}
256255

257256
@Override

0 commit comments

Comments
 (0)