Skip to content

Commit b2810cd

Browse files
authored
GH-10083: Add Nullability to support.management
* Description is not nullable * Update RouterSpec to suppress nullability This is for performance reasons
1 parent 76f990c commit b2810cd

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

spring-integration-core/src/main/java/org/springframework/integration/dsl/RouterSpec.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
*
4141
* @author Artem Bilan
4242
* @author Gary Russell
43+
* @author Glenn Renfro
4344
*
4445
* @since 5.0
4546
*/
@@ -254,6 +255,7 @@ void addMapping(Object key, NamedComponent channel) {
254255
}
255256

256257
@Override
258+
@SuppressWarnings("NullAway") // Performance
257259
protected void onInit() {
258260
super.onInit();
259261
ConversionService conversionService = getConversionService();
@@ -273,7 +275,6 @@ else if (conversionService.canConvert(key.getClass(), String.class)) {
273275
throw new MessagingException("Unsupported channel mapping type for router ["
274276
+ key.getClass() + "]");
275277
}
276-
277278
this.router.setChannelMapping(channelKey, entry.getValue().getComponentName());
278279
}
279280
}

spring-integration-core/src/main/java/org/springframework/integration/support/management/ControlBusCommandRegistry.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -300,6 +300,7 @@ public static final class CommandMethod {
300300

301301
private final Class<?>[] parameterTypes;
302302

303+
@SuppressWarnings("NullAway.Init")
303304
private String description;
304305

305306
private CommandMethod(String beanName, String methodName, Class<?>[] parameterTypes) {
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/**
22
* Provides classes related to management support.
33
*/
4+
@org.jspecify.annotations.NullMarked
45
package org.springframework.integration.support.management;

0 commit comments

Comments
 (0)