mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-10-01 03:39:05 +00:00
SPR-17074 Replace iteration over Map::ketSet with Map::entrySet
This commit is contained in:
committed by
Juergen Hoeller
parent
3c65c17053
commit
5051850fa9
+3
-2
@@ -208,9 +208,10 @@ public abstract class AbstractAspectJAdvisorFactory implements AspectJAdvisorFac
|
||||
}
|
||||
|
||||
private AspectJAnnotationType determineAnnotationType(A annotation) {
|
||||
for (Class<?> type : annotationTypes.keySet()) {
|
||||
for (Map.Entry<Class<?>, AspectJAnnotationType> typeEntry : annotationTypes.entrySet()) {
|
||||
Class<?> type = typeEntry.getKey();
|
||||
if (type.isInstance(annotation)) {
|
||||
return annotationTypes.get(type);
|
||||
return typeEntry.getValue();
|
||||
}
|
||||
}
|
||||
throw new IllegalStateException("Unknown annotation type: " + annotation.toString());
|
||||
|
||||
Reference in New Issue
Block a user