ponder-lab / Optimize-Java-8-Streams-Refactoring

Refactorings for optimizing Java 8 stream client code for greater parallelism and efficiency.
http://cuny.is/streams
Eclipse Public License 1.0
8 stars 7 forks source link

Duplication in failed_precondtions.csv #180

Open yiming-tang-cs opened 6 years ago

yiming-tang-cs commented 6 years ago

After I evaluated jdk8_experiments, there is a duplicate record in the failed_precondition.csv.

The duplicate record is

jdk8-experiments asList(1,3,2,5,7,6,8,0,9,4).stream() 2643 36 testReduceToMinAndMax() codemasters.lambda.demo.Demo3 5 Cannot derive reduction ordering for stream: asList(1,3,2,5,7,6,8,0,9,4).stream().
khatchad commented 6 years ago

Can we see the entire file?

yiming-tang-cs commented 6 years ago

Can we see the entire file?

subject stream start pos length method type FQN code message
jdk8-experiments s.codePoints() 1632 14 infinite() codemasters.lambda.hackday.BasicLambda 14 Stream: s.codePoints() has an unhandled case: Encountered unhandled case, most likely an embedded stream.
jdk8-experiments asList("123","456","789").stream() 1766 34 infinite() codemasters.lambda.hackday.BasicLambda 9 Stream: asList("123","456","789").stream() is associated with a behavioral parameter containing possible side-effects
jdk8-experiments new ArrayList<>(asList(yaris,mx5,equator,x6,civic,tida)).stream() 5899 70 setUp() codemasters.lambda.showtime.Demo1 13 Require terminal operations: new ArrayList<>(asList(yaris,mx5,equator,x6,civic,tida)).stream().
jdk8-experiments new LinkedHashSet<>(asList(edwinFromFranklin,oscarFromEdwin,karlaFromAlonso,patriciaFromPedro,victoriaFromOscar,franklinFromOscar,alonsoFromKarla,karlaFromFranklin,edwinFromKarla)).stream() 6791 321     14 Stream: new LinkedHashSet<>(asList(edwinFromFranklin,oscarFromEdwin,karlaFromAlonso,patriciaFromPedro,victoriaFromOscar,franklinFromOscar,alonsoFromKarla,karlaFromFranklin,edwinFromKarla)).stream() is most likely used in a context that is currently not handled by this plug-in.
jdk8-experiments new LinkedHashSet<>(asList(edwin,pedro,karla,oscar,franklin,patricia,alonso,victoria)).stream() 6518 103     14 Stream: new LinkedHashSet<>(asList(edwin,pedro,karla,oscar,franklin,patricia,alonso,victoria)).stream() is most likely used in a context that is currently not handled by this plug-in.
jdk8-experiments reader.lines() 1388 14 loadPersons(java.util.Optional) codemasters.lambda.hackday.PersonReader 9 Stream: reader.lines() is associated with a behavioral parameter containing possible side-effects
jdk8-experiments asList(1,3,2,5,7,6,8,0,9,4).stream() 2643 36 testReduceToMinAndMax() codemasters.lambda.demo.Demo3 5 Cannot derive reduction ordering for stream: asList(1,3,2,5,7,6,8,0,9,4).stream().
jdk8-experiments asList(1,2,3,4,5,6,7,8,9).stream() 1134 34 main(java.lang.String[]) codemasters.lambda.jug.Prep02 5 Cannot derive reduction ordering for stream: asList(1,2,3,4,5,6,7,8,9).stream().
jdk8-experiments sales.stream() 9732 14 withJDK8Test05() codemasters.lambda.testdrives.HackDayTest 5 Cannot derive reduction ordering for stream: sales.stream().
jdk8-experiments new LinkedHashSet<>(asList(yaris,mx5,equator,x6,civic,tida)).stream() 6668 74     14 Stream: new LinkedHashSet<>(asList(yaris,mx5,equator,x6,civic,tida)).stream() is most likely used in a context that is currently not handled by this plug-in.
jdk8-experiments asList("1","2","3","4","5").stream() 3661 36 testConstructorReferences() codemasters.lambda.demo.Demo3 13 Require terminal operations: asList("1","2","3","4","5").stream().
jdk8-experiments new LinkedHashSet<>(asList(yaris,mx5,equator,x6,civic,tida)).stream() 3111 74     14 Stream: new LinkedHashSet<>(asList(yaris,mx5,equator,x6,civic,tida)).stream() is most likely used in a context that is currently not handled by this plug-in.
jdk8-experiments new LinkedHashSet<>(asList(edwin,pedro,karla,oscar,franklin,patricia,alonso,victoria)).stream() 2964 103     14 Stream: new LinkedHashSet<>(asList(edwin,pedro,karla,oscar,franklin,patricia,alonso,victoria)).stream() is most likely used in a context that is currently not handled by this plug-in.
jdk8-experiments asList(yaris,mx5,equator,x6,civic,tida).stream() 4814 53 setUp() codemasters.lambda.demo.Demo3 13 Require terminal operations: asList(yaris,mx5,equator,x6,civic,tida).stream().
jdk8-experiments asList(1,2,3,4,5,6).stream() 427 28 main(java.lang.String[]) codemasters.lambda.practice.Demo4 13 Require terminal operations: asList(1,2,3,4,5,6).stream().
jdk8-experiments asList(myCars).stream() 1667 23 sortCars() codemasters.lambda.showtime.Demo3 13 Require terminal operations: asList(myCars).stream().
jdk8-experiments numbers.stream() 1605 16 textToNumbers() codemasters.lambda.practice.Demo2 13 Require terminal operations: numbers.stream().
jdk8-experiments asList(1,3,2,5,7,6,8,0,9,4).stream() 2643 36 testReduceToMinAndMax() codemasters.lambda.demo.Demo3 5 Cannot derive reduction ordering for stream: asList(1,3,2,5,7,6,8,0,9,4).stream().
jdk8-experiments s.codePoints() 1845 14 infinite() codemasters.lambda.hackday.BasicLambda 14 Stream: s.codePoints() has an unhandled case: Encountered unhandled case, most likely an embedded stream.
jdk8-experiments asList(yaris,mx5,equator,x6,civic,tida).stream() 2076 53 setUp() codemasters.lambda.showtime.Demo3 13 Require terminal operations: asList(yaris,mx5,equator,x6,civic,tida).stream().
jdk8-experiments asList("1","2","3","4","5").stream() 572 36 textToNumbers() codemasters.lambda.showtime.Demo3 13 Require terminal operations: asList("1","2","3","4","5").stream().
jdk8-experiments new LinkedHashSet<>(asList(edwinFromFranklin,oscarFromEdwin,karlaFromAlonso,patriciaFromPedro,victoriaFromOscar,franklinFromOscar,alonsoFromKarla,karlaFromFranklin)).stream() 3231 227     14 Stream: new LinkedHashSet<>(asList(edwinFromFranklin,oscarFromEdwin,karlaFromAlonso,patriciaFromPedro,victoriaFromOscar,franklinFromOscar,alonsoFromKarla,karlaFromFranklin)).stream() is most likely used in a context that is currently not handled by this plug-in.