diff --git a/edu.cuny.hunter.hybridize.core/src/edu/cuny/hunter/hybridize/core/analysis/Function.java b/edu.cuny.hunter.hybridize.core/src/edu/cuny/hunter/hybridize/core/analysis/Function.java index c3df9ec10..1a75f48ab 100644 --- a/edu.cuny.hunter.hybridize.core/src/edu/cuny/hunter/hybridize/core/analysis/Function.java +++ b/edu.cuny.hunter.hybridize.core/src/edu/cuny/hunter/hybridize/core/analysis/Function.java @@ -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;