If I have the following code:
public OutputStream test(boolean condition) throws FileNotFoundException { return condition ? null : new FileOutputStream(\
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.