Skip to content

Commit d0ce160

Browse files
committed
More work on #148.
1 parent 61efdd8 commit d0ce160

File tree

2 files changed

+5
-4
lines changed
  • edu.cuny.hunter.streamrefactoring.core/src/edu/cuny/hunter/streamrefactoring/core/safe
  • edu.cuny.hunter.streamrefactoring.tests/resources/ConvertStreamToParallel/testConcat/in

2 files changed

+5
-4
lines changed

edu.cuny.hunter.streamrefactoring.core/src/edu/cuny/hunter/streamrefactoring/core/safe/InstructionBasedSolver.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
import edu.cuny.hunter.streamrefactoring.core.utils.LoggerNames;
2222

2323
public class InstructionBasedSolver extends TrackingUniqueSolver {
24-
24+
2525
private static final Logger LOGGER = Logger.getLogger(LoggerNames.LOGGER_NAME);
2626

2727
private SSAInvokeInstruction instruction;
@@ -43,7 +43,7 @@ protected Collection<InstanceKey> computeTrackedInstances() throws PropertiesExc
4343

4444
for (InstanceKey instanceKey : trackedInstancesByType) {
4545
LOGGER.info("Examining instance: " + instanceKey);
46-
if (Util.instanceKeyCorrespondsWithInstantiationInstruction(instanceKey, this.getInstruction(),
46+
if (Util.instanceKeyCorrespondsWithInstantiationInstruction(instanceKey, this.getInstruction(), null,
4747
this.getCallGraph()))
4848
ret.add(instanceKey);
4949
}

edu.cuny.hunter.streamrefactoring.tests/resources/ConvertStreamToParallel/testConcat/in/A.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
class A {
1212
@EntryPoint
1313
void m() {
14-
concat(new HashSet().parallelStream(), new HashSet().parallelStream()).count();
14+
concat(new HashSet().parallelStream(),
15+
new HashSet().parallelStream()).count();
1516
}
16-
}
17+
}

0 commit comments

Comments
 (0)