Skip to content

Commit

Permalink
Avoid recommending t-w-r within custom close method
Browse files Browse the repository at this point in the history
  • Loading branch information
stephan-herrmann committed Jan 11, 2024
1 parent 6b27fcf commit 5667939
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1379,12 +1379,7 @@ public void consume(@Owning F this) throws Exception {
},
"""
----------
1. INFO in F.java (at line 6)
public void consume(@Owning F this) throws Exception {
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Resource 'rc1' should be managed by try-with-resource
----------
2. ERROR in F.java (at line 6)
1. ERROR in F.java (at line 6)
public void consume(@Owning F this) throws Exception {
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Resource leak: 'this.rc2' is never closed
Expand Down

0 comments on commit 5667939

Please sign in to comment.