Skip to content

Commit

Permalink
Fix main: remove an incompatible java api method with java 8 from a t…
Browse files Browse the repository at this point in the history
…est (#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.
  • Loading branch information
jchyb authored Jan 11, 2024
2 parents 36831b8 + 0eedd45 commit 9682751
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion tests/pos/i19354.orig.scala
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ class P extends AbstractProcessor {
.flatMap(annotation => roundEnv.getElementsAnnotatedWith(annotation).stream())
.filter(element => element.getKind == ElementKind.PACKAGE)
.map(element => element.asInstanceOf[PackageElement])
.toList()
true
}
}

0 comments on commit 9682751

Please sign in to comment.