You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@netbeans.apache.org by GitBox <gi...@apache.org> on 2017/11/24 21:10:18 UTC

[GitHub] dtrebbien commented on a change in pull request #287: Fix 271823 False positive of "Non-null method returns null"

dtrebbien commented on a change in pull request #287: Fix 271823 False positive of "Non-null method returns null"
URL: https://github.com/apache/incubator-netbeans/pull/287#discussion_r153026627
 
 

 ##########
 File path: java.hints/src/org/netbeans/modules/java/hints/bugs/NPECheck.java
 ##########
 @@ -429,17 +430,37 @@ public static ErrorDescription returnNull(HintContext ctx) {
 
         TreePath method = ctx.getPath();
 
-        while (method != null && method.getLeaf().getKind() != Kind.METHOD && method.getLeaf().getKind() != Kind.CLASS) {
+        loop: while (method != null) {
 
 Review comment:
   Done

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services