Skip to content

Commit

Permalink
fix skipping
Browse files Browse the repository at this point in the history
  • Loading branch information
radioegor146 committed May 31, 2022
1 parent 46454ba commit 1635473
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -174,8 +174,9 @@ public void process(Path inputJarPath, Path outputDir, List<Path> inputLibs,
ClassNode rawClassNode = new ClassNode(Opcodes.ASM7);
classReader.accept(rawClassNode, 0);

if (rawClassNode.methods.stream().noneMatch(MethodProcessor::shouldProcess) ||
!classMethodFilter.shouldProcess(rawClassNode)) {
if (!classMethodFilter.shouldProcess(rawClassNode) ||
rawClassNode.methods.stream().noneMatch(method -> MethodProcessor.shouldProcess(method) &&
classMethodFilter.shouldProcess(rawClassNode, method))) {
logger.info("Skipping {}", rawClassNode.name);
if (useAnnotations) {
ClassMethodFilter.cleanAnnotations(rawClassNode);
Expand Down

0 comments on commit 1635473

Please sign in to comment.