Skip to content

Commit 08a3360

Browse files
Remove unnecessary stream() before forEach()
Signed-off-by: Tran Ngoc Nhan <[email protected]>
1 parent 32fa9fc commit 08a3360

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

spring-kafka/src/main/java/org/springframework/kafka/listener/ContainerGroupSequencer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ public void initialize() {
201201
this.currentGroup = this.iterator.next();
202202
this.groups.forEach(grp -> {
203203
Collection<String> ids = grp.getListenerIds();
204-
ids.stream().forEach(id -> {
204+
ids.forEach(id -> {
205205
MessageListenerContainer container = this.registry.getListenerContainer(id);
206206
if (Objects.requireNonNull(container).getContainerProperties().getIdleEventInterval() == null) {
207207
container.getContainerProperties().setIdleEventInterval(this.defaultIdleEventInterval);

spring-kafka/src/main/java/org/springframework/kafka/retrytopic/DefaultDestinationTopicProcessor.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ public void processDestinationTopicProperties(Consumer<DestinationTopic.Properti
4646
Context context) {
4747
context
4848
.properties
49-
.stream()
5049
.forEach(destinationPropertiesProcessor);
5150
}
5251

0 commit comments

Comments
 (0)