Skip to content

Commit

Permalink
make test suitable for annotation mode, too.
Browse files Browse the repository at this point in the history
  • Loading branch information
stephan-herrmann committed Jan 16, 2024
1 parent 8d72dde commit 422f6ef
Showing 1 changed file with 16 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7089,24 +7089,22 @@ void test(int sw) {
}
"""
},
"""
----------
1. ERROR in X.java (at line 11)
get().m();
^^^^^
Potential resource leak: \'<unassigned Closeable value>\' may not be closed
----------
2. ERROR in X.java (at line 14)
get().m();
^^^^^
Potential resource leak: \'<unassigned Closeable value>\' may not be closed
----------
3. ERROR in X.java (at line 18)
get().m();
^^^^^
Potential resource leak: \'<unassigned Closeable value>\' may not be closed
----------
""",
"----------\n" +
"1. ERROR in X.java (at line 11)\n" +
" get().m();\n" +
" ^^^^^\n" +
potentialOrDefiniteLeak("<unassigned Closeable value>") +
"----------\n" +
"2. ERROR in X.java (at line 14)\n" +
" get().m();\n" +
" ^^^^^\n" +
potentialOrDefiniteLeak("<unassigned Closeable value>") +
"----------\n" +
"3. ERROR in X.java (at line 18)\n" +
" get().m();\n" +
" ^^^^^\n" +
potentialOrDefiniteLeak("<unassigned Closeable value>") +
"----------\n",
options);
}
}

0 comments on commit 422f6ef

Please sign in to comment.