Skip to content

Commit

Permalink
Don't return when @PluginFactory is present
Browse files Browse the repository at this point in the history
This a workaround for apache/logging-log4j2#3126.
  • Loading branch information
ppkarwasz committed Oct 28, 2024
1 parent 26f4d11 commit 1bace28
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -409,8 +409,8 @@ private List<String> findBuilderClassHierarchy(final ClassLoader classLoader) {
for (final Annotation annotation : method.getAnnotations()) {
switch (annotation.annotationType().getName()) {
case PLUGIN_FACTORY:
// No need to search further, there is no builder
return Collections.emptyList();
// Continue the search until apache/logging-log4j2#3126 is fixed.
break;
case PLUGIN_BUILDER_FACTORY:
return computeClassHierarchy(findBuilderClass(method.getGenericReturnType()));
}
Expand Down

0 comments on commit 1bace28

Please sign in to comment.