use lambda shorthand

This commit is contained in:
Manu Sridharan 2017-11-12 10:08:57 -08:00
parent d124256835
commit 808688b793
1 changed files with 2 additions and 2 deletions

View File

@ -147,7 +147,7 @@ public abstract class DynamicCallGraphTestBase extends WalaTestCase {
}
protected void checkEdges(CallGraph staticCG) throws IOException {
checkEdges(staticCG, (MethodReference x) -> { return true; });
checkEdges(staticCG, (x) -> true );
}
protected void checkEdges(CallGraph staticCG, Predicate<MethodReference> filter) throws IOException {
@ -170,7 +170,7 @@ public abstract class DynamicCallGraphTestBase extends WalaTestCase {
}
protected void checkNodes(CallGraph staticCG) throws IOException {
checkNodes(staticCG, (MethodReference x) -> { return true; });
checkNodes(staticCG, (x) -> true);
}
protected void checkNodes(CallGraph staticCG, Predicate<MethodReference> filter) throws IOException {