File tree Expand file tree Collapse file tree
scijava-common3/src/main/java/org/scijava/common3 Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ private Annotations() {
6565 * @see <a href="https://github.com/scijava/scijava-common/issues/142">issue
6666 * #142</a>
6767 */
68- private static final FieldCache fieldCache = new FieldCache ();
68+ private static final CacheMap < Field > fieldCache = new CacheMap <> ();
6969
7070 /**
7171 * This maps a base class (key1) to a map of annotation classes (key2), which
@@ -79,7 +79,7 @@ private Annotations() {
7979 * @see <a href="https://github.com/scijava/scijava-common/issues/142">issue
8080 * #142</a>
8181 */
82- private static final MethodCache methodCache = new MethodCache ();
82+ private static final CacheMap < Method > methodCache = new CacheMap <> ();
8383
8484 // -- Class loading, querying and reflection --
8585
@@ -348,22 +348,6 @@ private static <T extends AnnotatedElement> void populateCache(
348348
349349 // -- Helper classes --
350350
351- /**
352- * Convenience class for a {@link CacheMap} that stores annotated
353- * {@link Field}s.
354- */
355- private static class FieldCache extends CacheMap <Field > {
356- // Trivial subclass to narrow generic params
357- }
358-
359- /**
360- * Convenience class for a {@link CacheMap} that stores annotated
361- * {@link Method}s.
362- */
363- private static class MethodCache extends CacheMap <Method > {
364- // Trivial subclass to narrow generic params
365- }
366-
367351 /**
368352 * Convenience class for {@code Map > Map > List} hierarchy. Cleans up
369353 * generics and contains helper methods for traversing the two map levels.
You can’t perform that action at this time.
0 commit comments