Browse Source

Reverse change committed erroneously

pull/286/merge
Rossen Stoyanchev 13 years ago
parent
commit
aa6f30482f
  1. 2
      spring-messaging/src/main/java/org/springframework/messaging/handler/method/HandlerMethod.java
  2. 2
      spring-web/src/main/java/org/springframework/web/method/HandlerMethod.java

2
spring-messaging/src/main/java/org/springframework/messaging/handler/method/HandlerMethod.java

@ -206,7 +206,7 @@ public class HandlerMethod { @@ -206,7 +206,7 @@ public class HandlerMethod {
* @return the annotation, or {@code null} if none found
*/
public <A extends Annotation> A getMethodAnnotation(Class<A> annotationType) {
return AnnotationUtils.findAnnotation(this.bridgedMethod, annotationType);
return AnnotationUtils.findAnnotation(this.method, annotationType);
}
/**

2
spring-web/src/main/java/org/springframework/web/method/HandlerMethod.java

@ -206,7 +206,7 @@ public class HandlerMethod { @@ -206,7 +206,7 @@ public class HandlerMethod {
* @return the annotation, or {@code null} if none found
*/
public <A extends Annotation> A getMethodAnnotation(Class<A> annotationType) {
return AnnotationUtils.findAnnotation(this.bridgedMethod, annotationType);
return AnnotationUtils.findAnnotation(this.method, annotationType);
}
/**

Loading…
Cancel
Save