JavaCompilerCore/resources/bytecode/javFiles/BugXXX.jav
Daniel Holle e0d71a6003
Some checks failed
Build and Test with Maven / Build-and-test-with-Maven (push) Failing after 2m37s
fix console
2024-04-12 14:17:15 +02:00

17 lines
462 B
Java

import java.util.ArrayList;
import java.util.List;
import java.util.Optional;
import java.lang.String;
import java.util.stream.Stream;
import java.util.function.Function;
import java.util.function.Predicate;
import java.lang.Integer;
class BugXXX {
public main() {
List<Integer> i = new ArrayList<>(List.of(1,2,3,4,5,6,7,8,9,10));
Optional<Integer> tmp = i.stream().filter(x -> x == 5).map(x -> x*2).findFirst();
return tmp;
}
}