From ececf32c052082724ab86b5d2b567ffc7c137b67 Mon Sep 17 00:00:00 2001 From: Sam Brannen Date: Thu, 23 Apr 2015 17:27:58 +0200 Subject: [PATCH] Revert unintentional change in AnnotationUtils --- .../springframework/core/annotation/AnnotationUtils.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/spring-core/src/main/java/org/springframework/core/annotation/AnnotationUtils.java b/spring-core/src/main/java/org/springframework/core/annotation/AnnotationUtils.java index 9cc25cd357..439cb9d124 100644 --- a/spring-core/src/main/java/org/springframework/core/annotation/AnnotationUtils.java +++ b/spring-core/src/main/java/org/springframework/core/annotation/AnnotationUtils.java @@ -364,11 +364,12 @@ public abstract class AnnotationUtils { result = searchOnInterfaces(method, annotationType, clazz.getInterfaces()); } } - } - if (result != null) { - findAnnotationCache.put(cacheKey, result); + if (result != null) { + findAnnotationCache.put(cacheKey, result); + } } + return result; }