GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — [java] CloseResource false positive when resource included in return value · Issue #2470 · pmd/pmd Closed Labels a:false-positivePMD flags a piece of code that is not problematic Milestone DescriptionAffects PMD Version: ??? Rule: CloseResource Description: false positive when resource included in return value. Code Sample demonstrating the issue: Spring MVC controller method: public ResponseEntity<StreamingResponseBody> test() throws IOException { final InputStream is = Files.newInputStream(Paths.get("...")); return ResponseBody.ok(os -> { try { is.transferTo(os); } finally { is.close(); } }); } Expected outcome:
Running PMD through: [CLI | Ant | Maven | Gradle | Designer | Other] ???? Activity
MetadataMetadataAssigneesLabelsa:false-positivePMD flags a piece of code that is not problematic TypeProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |