mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-09-17 12:09:16 +00:00
Polish
This commit is contained in:
+1
-1
@@ -89,7 +89,7 @@ final class PulsarPropertiesMapper {
|
||||
try {
|
||||
return sortedParams.entrySet()
|
||||
.stream()
|
||||
.map((e) -> "\"%s\":\"%s\"".formatted(e.getKey(), e.getValue()))
|
||||
.map((entry) -> "\"%s\":\"%s\"".formatted(entry.getKey(), entry.getValue()))
|
||||
.collect(Collectors.joining(",", "{", "}"));
|
||||
}
|
||||
catch (Exception ex) {
|
||||
|
||||
-2
@@ -556,7 +556,6 @@ class RabbitAutoConfigurationTests {
|
||||
Object virtualThread = ReflectionTestUtils.getField(taskExecutor, "virtualThreadFactory");
|
||||
Thread threadCreated = ((ThreadFactory) virtualThread).newThread(mock(Runnable.class));
|
||||
assertThat(threadCreated.getName()).containsPattern("rabbit-simple-[0-9]+");
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
@@ -573,7 +572,6 @@ class RabbitAutoConfigurationTests {
|
||||
Object virtualThread = ReflectionTestUtils.getField(taskExecutor, "virtualThreadFactory");
|
||||
Thread threadCreated = ((ThreadFactory) virtualThread).newThread(mock(Runnable.class));
|
||||
assertThat(threadCreated.getName()).containsPattern("rabbit-direct-[0-9]+");
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user