Open
Description
If the test case is:
package p;
import java.util.HashSet;
import java.util.stream.*;
import edu.cuny.hunter.streamrefactoring.annotations.*;
class A {
Stream<Object> m() {
Stream<Object> stream = new HashSet<>().stream().parallel();
return stream;
}
@EntryPoint
void n() {
Stream<Object> s = m();
s.distinct().count();
}
}
there are two elements in execution modes:
stream | start pos | length | method | type FQN | execution mode |
---|---|---|---|---|---|
new HashSet<>().stream() | 192 | 24 | m() | p.A | SEQUENTIAL |
new HashSet<>().stream() | 192 | 24 | m() | p.A | PARALLEL |