Skip to content

Commit

Permalink
Polish
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangt2333 authored and chaos-warzh committed May 29, 2024
1 parent 91ec8b3 commit 12f6f67
Showing 1 changed file with 4 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
import java.lang.reflect.Method;
import java.util.ArrayList;
import java.util.List;
import java.util.stream.Stream;

/**
* Composite plugin which allows multiple independent plugins
Expand Down Expand Up @@ -90,13 +91,9 @@ private void addPlugin(Plugin plugin, List<Plugin> plugins,
}

public void clearPlugins() {
allPlugins.clear();
onNewPointsToSetPlugins.clear();
onNewCallEdgePlugins.clear();
onNewMethodPlugins.clear();
onNewStmtPlugins.clear();
onNewCSMethodPlugins.clear();
onUnresolvedCallPlugins.clear();
Stream.of(allPlugins, onNewPointsToSetPlugins, onNewCallEdgePlugins,
onNewMethodPlugins, onNewStmtPlugins, onNewCSMethodPlugins,
onUnresolvedCallPlugins).forEach(List::clear);
}

@Override
Expand Down

0 comments on commit 12f6f67

Please sign in to comment.