Skip to content

Commit

Permalink
rename
Browse files Browse the repository at this point in the history
  • Loading branch information
msridhar committed Nov 29, 2024
1 parent b77908e commit c906f2c
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ public void testLambdaParamsAndCapture()
Atom.findOrCreateUnicodeAtom("target"),
Descriptor.findOrCreateUTF8("()V"));

Consumer<String> checkCalledFromOneSite =
Consumer<String> checkCalledFromFiveSites =
(klassName) -> {
Set<CGNode> nodes = cg.getNodes(getTargetRef.apply(klassName));
assertEquals(1, nodes.size(), "expected " + klassName + ".target() to be reachable");
Expand All @@ -106,11 +106,11 @@ public void testLambdaParamsAndCapture()
"expected " + klassName + ".target() to be invoked from five call sites");
};

checkCalledFromOneSite.accept("C1");
checkCalledFromOneSite.accept("C2");
checkCalledFromOneSite.accept("C3");
checkCalledFromOneSite.accept("C4");
checkCalledFromOneSite.accept("C5");
checkCalledFromFiveSites.accept("C1");
checkCalledFromFiveSites.accept("C2");
checkCalledFromFiveSites.accept("C3");
checkCalledFromFiveSites.accept("C4");
checkCalledFromFiveSites.accept("C5");
}

public static CallGraph testCHA(
Expand Down

0 comments on commit c906f2c

Please sign in to comment.