Skip to content

Commit 9682751

Browse files
authored
Fix main: remove an incompatible java api method with java 8 from a test (#19424)
Looks like the issue with main and the nightly release was caused by the test in #19354. I checked and that `toList` method does not seem to affect what is being tested there (the previous error would still appear without it), so I removed it here.
2 parents 36831b8 + 0eedd45 commit 9682751

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

tests/pos/i19354.orig.scala

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ class P extends AbstractProcessor {
1010
.flatMap(annotation => roundEnv.getElementsAnnotatedWith(annotation).stream())
1111
.filter(element => element.getKind == ElementKind.PACKAGE)
1212
.map(element => element.asInstanceOf[PackageElement])
13-
.toList()
1413
true
1514
}
1615
}

0 commit comments

Comments
 (0)