Skip to content

Commit ea52a44

Browse files
committed
Polish
1 parent f1018ba commit ea52a44

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/pulsar/PulsarPropertiesMapper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ private String getAuthenticationParamsJson(Map<String, String> params) {
8989
try {
9090
return sortedParams.entrySet()
9191
.stream()
92-
.map((e) -> "\"%s\":\"%s\"".formatted(e.getKey(), e.getValue()))
92+
.map((entry) -> "\"%s\":\"%s\"".formatted(entry.getKey(), entry.getValue()))
9393
.collect(Collectors.joining(",", "{", "}"));
9494
}
9595
catch (Exception ex) {

spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/amqp/RabbitAutoConfigurationTests.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -556,7 +556,6 @@ void shouldConfigureVirtualThreadsForSimpleListener() {
556556
Object virtualThread = ReflectionTestUtils.getField(taskExecutor, "virtualThreadFactory");
557557
Thread threadCreated = ((ThreadFactory) virtualThread).newThread(mock(Runnable.class));
558558
assertThat(threadCreated.getName()).containsPattern("rabbit-simple-[0-9]+");
559-
560559
});
561560
}
562561

@@ -573,7 +572,6 @@ void shouldConfigureVirtualThreadsForDirectListener() {
573572
Object virtualThread = ReflectionTestUtils.getField(taskExecutor, "virtualThreadFactory");
574573
Thread threadCreated = ((ThreadFactory) virtualThread).newThread(mock(Runnable.class));
575574
assertThat(threadCreated.getName()).containsPattern("rabbit-direct-[0-9]+");
576-
577575
});
578576
}
579577

0 commit comments

Comments
 (0)