Skip to content

Commit

Permalink
Simplify side-effects algorithm.
Browse files Browse the repository at this point in the history
  • Loading branch information
khatchad committed Nov 15, 2023
1 parent 2f49d0c commit 9906e0f
Showing 1 changed file with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -513,12 +513,8 @@ private static boolean allCreationsWithinClosureInteral2(MethodReference methodR
CGNode next = succNodes.next();
MethodReference reference = next.getMethod().getReference();

if (!seen.contains(reference)) {
seen.add(reference);

if (allCreationsWithinClosureInteral(reference, instanceKey, callGraph, seen))
return true;
}
if (!seen.contains(reference) && allCreationsWithinClosureInteral(reference, instanceKey, callGraph, seen))
return true;
}

return false;
Expand Down

0 comments on commit 9906e0f

Please sign in to comment.