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: org.springframework.web.portlet/src/main/java/org/springframework/web/portlet/mvc/annotation/AnnotationMethodHandlerAdapter.java
+7-5Lines changed: 7 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -237,16 +237,18 @@ public void setCustomArgumentResolvers(WebArgumentResolver[] argumentResolvers)
237
237
}
238
238
239
239
/**
240
-
* Set a custom ModelAndViewResolvers to use for special method return types. Such a custom ModelAndViewResolver will kick
241
-
* in first, having a chance to resolve an return value before the standard ModelAndView handling kicks in.
240
+
* Set a custom ModelAndViewResolvers to use for special method return types.
241
+
* Such a custom ModelAndViewResolver will kick in first, having a chance to
242
+
* resolve an return value before the standard ModelAndView handling kicks in.
Copy file name to clipboardExpand all lines: org.springframework.web.portlet/src/main/java/org/springframework/web/portlet/mvc/annotation/DefaultAnnotationHandlerMapping.java
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
/*
2
-
* Copyright 2002-2010 the original author or authors.
2
+
* Copyright 2002-2011 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
@@ -186,7 +186,7 @@ else if (ann instanceof EventMapping) {
186
186
if (typeMapping != null) {
187
187
modeKeys = typeMapping.value();
188
188
}
189
-
else {
189
+
if (modeKeys.length == 0) {
190
190
thrownewIllegalStateException(
191
191
"No portlet mode mappings specified - neither at type nor at method level");
0 commit comments