diff --git a/spring-integration-core/src/main/java/org/springframework/integration/handler/MethodInvokingMessageHandler.java b/spring-integration-core/src/main/java/org/springframework/integration/handler/MethodInvokingMessageHandler.java index 10011fde10..b3f9cdda51 100644 --- a/spring-integration-core/src/main/java/org/springframework/integration/handler/MethodInvokingMessageHandler.java +++ b/spring-integration-core/src/main/java/org/springframework/integration/handler/MethodInvokingMessageHandler.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2010 the original author or authors. + * Copyright 2002-2011 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -50,6 +50,11 @@ public class MethodInvokingMessageHandler extends AbstractMessageHandler { this.componentType = componentType; } + @Override + public String getComponentType() { + return this.componentType; + } + @Override protected void handleMessageInternal(Message message) throws Exception { Object result = processor.processMessage(message); @@ -58,9 +63,5 @@ public class MethodInvokingMessageHandler extends AbstractMessageHandler { + "have a void return, but '" + this + "' received a value: [" + result + "]"); } } - - @Override - public String getComponentType() { - return this.componentType; - } + }