You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: spring-messaging/src/main/java/org/springframework/messaging/handler/invocation/InvocableHandlerMethod.java
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -283,10 +283,10 @@ public Class<?> getParameterType() {
283
283
if (this.returnValue != null) {
284
284
returnthis.returnValue.getClass();
285
285
}
286
-
if (ResolvableType.NONE.equals(this.returnType)) {
287
-
thrownewIllegalArgumentException("Expected Future-like type with generic parameter");
286
+
if (!ResolvableType.NONE.equals(this.returnType)) {
Copy file name to clipboardExpand all lines: spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/annotation/ServletInvocableHandlerMethod.java
+3-9Lines changed: 3 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -281,16 +281,10 @@ public Class<?> getParameterType() {
Copy file name to clipboardExpand all lines: spring-webmvc/src/test/java/org/springframework/web/servlet/mvc/method/annotation/ServletInvocableHandlerMethodTests.java
+57-17Lines changed: 57 additions & 17 deletions
Original file line number
Diff line number
Diff line change
@@ -56,6 +56,7 @@
56
56
*
57
57
* @author Rossen Stoyanchev
58
58
* @author Sam Brannen
59
+
* @author Juergen Hoeller
59
60
*/
60
61
publicclassServletInvocableHandlerMethodTests {
61
62
@@ -126,9 +127,7 @@ public void invokeAndHandle_VoidRequestNotModified() throws Exception {
0 commit comments