Skip to content

Commit 7a31ab7

Browse files
6 new compiler test errors on Java 17 builds since I20241203-1800 (#3405)
Fixes #3393
1 parent 452a5de commit 7a31ab7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/ResourceLeakAnnotatedTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1739,7 +1739,7 @@ public <T extends Closeable> T register(@Owning
17391739
17401740
@Override
17411741
public void close() throws IOException {
1742-
for (Closeable closeable : toClose.reversed()) {
1742+
for (Closeable closeable : toClose) {
17431743
closeable.close(); // Ignore error handling for this demonstration
17441744
}
17451745
}
@@ -1789,7 +1789,7 @@ public <T extends Closeable> T register(@Owning
17891789
17901790
@Override
17911791
public void close() throws IOException {
1792-
for (Closeable closeable : toClose.reversed()) {
1792+
for (Closeable closeable : toClose) {
17931793
closeable.close(); // Ignore error handling for this demonstration
17941794
}
17951795
}

0 commit comments

Comments
 (0)