From 40cd1be14c856985d56715bdfd09a71c2cf23955 Mon Sep 17 00:00:00 2001 From: Sam Brannen Date: Wed, 7 Jan 2015 21:08:00 +0100 Subject: [PATCH] Update Javadoc for AnnotationUtils.findAnnotation() This commit updates the Javadoc for findAnnotation() to reflect recent changes to the algorithm it implements. --- .../org/springframework/core/annotation/AnnotationUtils.java | 4 ++-- 1 file changed, 2 insertions(+), 2 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 5393f6849f05..e8805c205b87 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 @@ -1,5 +1,5 @@ /* - * Copyright 2002-2014 the original author or authors. + * Copyright 2002-2015 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. @@ -318,8 +318,8 @@ private static boolean isInterfaceWithAnnotatedMethods(Class iface) { *

The algorithm operates as follows: *

    *
  1. Search for the annotation on the given class and return it if found. - *
  2. Recursively search through all interfaces that the given class declares. *
  3. Recursively search through all annotations that the given class declares. + *
  4. Recursively search through all interfaces that the given class declares. *
  5. Recursively search through the superclass hierarchy of the given class. *
*

Note: in this context, the term recursively means that the search