diff --git a/spring-integration-core/src/main/java/org/springframework/integration/router/PayloadTypeRouter.java b/spring-integration-core/src/main/java/org/springframework/integration/router/PayloadTypeRouter.java index 41e9b8bbb0..71388b3c01 100644 --- a/spring-integration-core/src/main/java/org/springframework/integration/router/PayloadTypeRouter.java +++ b/spring-integration-core/src/main/java/org/springframework/integration/router/PayloadTypeRouter.java @@ -87,7 +87,7 @@ public class PayloadTypeRouter extends AbstractMessageRouter { Class[] interfaces = type.getInterfaces(); List matchedInterfaces = new ArrayList(); - this.doInitrospect(interfaces, matchedInterfaces); + this.doIntrospect(interfaces, matchedInterfaces); if (matchedInterfaces.isEmpty()){ return null; @@ -104,14 +104,14 @@ public class PayloadTypeRouter extends AbstractMessageRouter { } } - public void doInitrospect(Class[] interfaces, List matchedInterfaces){ + private void doIntrospect(Class[] interfaces, List matchedInterfaces){ for (Class extendedInterface : interfaces) { String currentChannelName = this.channelIdentifierMap.get(extendedInterface.getName()); if (StringUtils.hasText(currentChannelName)) { matchedInterfaces.add(extendedInterface.getName()); } Class[] extendedInterfaces = extendedInterface.getInterfaces(); - this.doInitrospect(extendedInterfaces, matchedInterfaces); + this.doIntrospect(extendedInterfaces, matchedInterfaces); } }