Georg Romstorfer created NETBEANS-1853:
------------------------------------------
Summary: Erroneous hint: Throwable method result is ignored
Key: NETBEANS-1853
URL: https://issues.apache.org/jira/browse/NETBEANS-1853
Project: NetBeans
Issue Type: Bug
Components: cnd - Editor
Affects Versions: 9.0
Reporter: Georg Romstorfer
In the following code the editor displays the warning "Throwable method result
is ignored" at the commented line although that's not true.
{code:java}
private String test() {
try {
throw new RuntimeException();
} catch (RuntimeException e) {
Throwable cause = e.getCause(); // <- Warning
return "Error: " + (cause == null ? "null" : cause);
}
}
{code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists