See gh-26135
This commit is contained in:
izeye
2021-04-15 22:52:16 +09:00
committed by Stephane Nicoll
parent 641df02bc3
commit e27c85698d
11 changed files with 16 additions and 21 deletions

View File

@@ -36,13 +36,13 @@ import org.springframework.util.ConcurrentReferenceHashMap;
*/
public final class TimedAnnotations {
private static Map<AnnotatedElement, Set<Timed>> cache = new ConcurrentReferenceHashMap<>();
private static final Map<AnnotatedElement, Set<Timed>> cache = new ConcurrentReferenceHashMap<>();
private TimedAnnotations() {
}
/**
* Return {@link Timed} annotation that should be used for the given {@code method}
* Return {@link Timed} annotations that should be used for the given {@code method}
* and {@code type}.
* @param method the source method
* @param type the source type