graben commented on issue #1559: [NETBEANS-3218] Add inline hint support for literals used in constructors URL: https://github.com/apache/netbeans/pull/1559#issuecomment-541345144 Well, as you already said it's not save how the tree is really implemented. So the kind could return another type th an the cast would. In such a case an exception would be the result by unsafe cast. That's why I would prefer the instanceof check to save the cast would not throw an exception.
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: notifications-unsubscr...@netbeans.apache.org For additional commands, e-mail: notifications-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists