Georg Romstorfer created NETBEANS-1853:

             Summary: Erroneous hint: Throwable method result is ignored
                 Key: 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.
private String test() {
    try {
      throw new RuntimeException();
    } catch (RuntimeException e) {
      Throwable cause = e.getCause(); // <- Warning
      return "Error: " + (cause == null ? "null" : cause);

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

For further information about the NetBeans mailing lists, visit:

Reply via email to