Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
9.0
-
None
-
None
Description
In the following code the editor displays the warning "Throwable method result is ignored" at the commented line although that's not true.
private String test() { try { throw new RuntimeException(); } catch (RuntimeException e) { Throwable cause = e.getCause(); // <- Warning return "Error: " + (cause == null ? "null" : cause); } }