You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/ResourceLeakAnnotatedTests.java
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1739,7 +1739,7 @@ public <T extends Closeable> T register(@Owning
1739
1739
1740
1740
@Override
1741
1741
public void close() throws IOException {
1742
-
for (Closeable closeable : toClose.reversed()) {
1742
+
for (Closeable closeable : toClose) {
1743
1743
closeable.close(); // Ignore error handling for this demonstration
1744
1744
}
1745
1745
}
@@ -1789,7 +1789,7 @@ public <T extends Closeable> T register(@Owning
1789
1789
1790
1790
@Override
1791
1791
public void close() throws IOException {
1792
-
for (Closeable closeable : toClose.reversed()) {
1792
+
for (Closeable closeable : toClose) {
1793
1793
closeable.close(); // Ignore error handling for this demonstration
0 commit comments