File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed
src/main/java/com/hubspot/jinjava/lib/tag/eager Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 1818
1919 <dep .javassist.version>3.24.1-GA</dep .javassist.version>
2020 <dep .plugin.jacoco.version>0.8.3</dep .plugin.jacoco.version>
21+ <dep .guava.version>31.1-jre</dep .guava.version>
22+ <dep .error-prone.version>2.19.1</dep .error-prone.version>
2123
2224 <basepom .test.add.opens>
2325 --add-opens=java.base/java.lang=ALL-UNNAMED
Original file line number Diff line number Diff line change @@ -63,9 +63,11 @@ public static <T extends Tag> Optional<EagerTagDecorator<T>> getEagerTagDecorato
6363 if (TAG_CLASSES_TO_SKIP .contains (clazz )) {
6464 return Optional .empty ();
6565 }
66- if (EAGER_TAG_OVERRIDES .containsKey (clazz )) {
67- EagerTagDecorator <?> decorator = EAGER_TAG_OVERRIDES
68- .get (clazz )
66+ Class <? extends EagerTagDecorator <? extends Tag >> eagerOverrideClass = EAGER_TAG_OVERRIDES .get (
67+ clazz
68+ );
69+ if (eagerOverrideClass != null ) {
70+ EagerTagDecorator <?> decorator = eagerOverrideClass
6971 .getDeclaredConstructor (clazz )
7072 .newInstance (tag );
7173 if (decorator .getTag ().getClass () == clazz ) {
You can’t perform that action at this time.
0 commit comments