Eclipse inconsistencies: Resource leak: '' is never closed

后端 未结 1 408
野性不改
野性不改 2021-01-18 22:53

If I have the following code:

public OutputStream test(boolean condition) throws FileNotFoundException {
    return condition ? null : new FileOutputStream(\         


        
相关标签:
1条回答
  • 2021-01-18 23:16

    It is clearly a bug. The bug report https://bugs.eclipse.org/bugs/show_bug.cgi?id=434065 has been acknowledged, but not fixed.

    The bug is still open as of July 2019.

    0 讨论(0)
提交回复
热议问题