We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 06aa06d commit 100351fCopy full SHA for 100351f
src/main/java/org/scijava/util/ClassUtils.java
@@ -699,12 +699,8 @@ private static class CacheMap<T extends AnnotatedElement> extends
699
public List<T> getList(final Class<?> c,
700
final Class<? extends Annotation> annotationClass)
701
{
702
- List<T> annotatedFields = null;
703
final Map<Class<? extends Annotation>, List<T>> annotationTypes = get(c);
704
- if (annotationTypes != null) {
705
- annotatedFields = annotationTypes.get(annotationClass);
706
- }
707
- return annotatedFields;
+ return annotationTypes == null ? null : annotationTypes.get(annotationClass);
708
}
709
710
/**
0 commit comments