Skip to content

Commit

Permalink
(WIP) implement
Browse files Browse the repository at this point in the history
  • Loading branch information
Godin committed Jan 31, 2020
1 parent 8a0976e commit c590a92
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
Expand Up @@ -12,6 +12,7 @@
*******************************************************************************/
package org.jacoco.core.internal.analysis.filter;

import org.objectweb.asm.Opcodes;
import org.objectweb.asm.tree.MethodNode;

/**
Expand All @@ -21,7 +22,11 @@ final class BridgeFilter implements IFilter {

public void filter(final MethodNode methodNode,
final IFilterContext context, final IFilterOutput output) {
// TODO
if ((methodNode.access & Opcodes.ACC_BRIDGE) == 0) {
return;
}
output.ignore(methodNode.instructions.getFirst(),
methodNode.instructions.getLast());
}

}
Expand Up @@ -33,7 +33,8 @@ public final class Filters implements IFilter {
*/
public static IFilter all() {
return new Filters(new EnumFilter(), new SyntheticFilter(),
new SynchronizedFilter(), new TryWithResourcesJavac11Filter(),
new BridgeFilter(), new SynchronizedFilter(),
new TryWithResourcesJavac11Filter(),
new TryWithResourcesJavacFilter(),
new TryWithResourcesEcjFilter(), new FinallyFilter(),
new PrivateEmptyNoArgConstructorFilter(),
Expand Down

0 comments on commit c590a92

Please sign in to comment.