diff --git a/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/ResourceLeakTests.java b/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/ResourceLeakTests.java index 5e607b9fe30..646c9b46704 100644 --- a/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/ResourceLeakTests.java +++ b/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/ResourceLeakTests.java @@ -7089,24 +7089,22 @@ void test(int sw) { } """ }, - """ - ---------- - 1. ERROR in X.java (at line 11) - get().m(); - ^^^^^ - Potential resource leak: \'\' may not be closed - ---------- - 2. ERROR in X.java (at line 14) - get().m(); - ^^^^^ - Potential resource leak: \'\' may not be closed - ---------- - 3. ERROR in X.java (at line 18) - get().m(); - ^^^^^ - Potential resource leak: \'\' may not be closed - ---------- - """, + "----------\n" + + "1. ERROR in X.java (at line 11)\n" + + " get().m();\n" + + " ^^^^^\n" + + potentialOrDefiniteLeak("") + + "----------\n" + + "2. ERROR in X.java (at line 14)\n" + + " get().m();\n" + + " ^^^^^\n" + + potentialOrDefiniteLeak("") + + "----------\n" + + "3. ERROR in X.java (at line 18)\n" + + " get().m();\n" + + " ^^^^^\n" + + potentialOrDefiniteLeak("") + + "----------\n", options); } }