You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@netbeans.apache.org by "Neumi7712 (via GitHub)" <gi...@apache.org> on 2023/03/13 08:05:53 UTC

[GitHub] [netbeans] Neumi7712 opened a new issue, #5659: False collection warnings

Neumi7712 opened a new issue, #5659:
URL: https://github.com/apache/netbeans/issues/5659

   ### Apache NetBeans version
   
   Apache NetBeans 17
   
   ### What happened
   
   There are many cases in which Netbeans won't recognize, that a collection has been accessed, one of them are functional operators. But it also gives this warning for class variables when they have been passed to the outside as method result, also when wrapped in a unmodifiable collection.
   ![grafik](https://user-images.githubusercontent.com/77264698/224641815-1ccb33a7-ae75-4879-bde9-f9074c5cee84.png)
   
   
   ### How to reproduce
   
   
   `    var allDirs = new ArrayList<File>();
       allDirs.add(new File("directoryname"));
       allDirs.forEach(oneDir -> System.out.println(oneDir.getName()));
   `
   
   
   ### Did this work correctly in an earlier version?
   
   No / Don't know
   
   ### Operating System
   
   Windows 10
   
   ### JDK
   
   17
   
   ### Apache NetBeans packaging
   
   Apache NetBeans provided installer
   
   ### Anything else
   
   All the time.
   It's nothing serious, just annoying.
   
   ### Are you willing to submit a pull request?
   
   No


-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


[GitHub] [netbeans] mbien commented on issue #5659: False collection warnings

Posted by "mbien (via GitHub)" <gi...@apache.org>.
mbien commented on issue #5659:
URL: https://github.com/apache/netbeans/issues/5659#issuecomment-1465729748

   yeah this hint is a bit buggy atm. #5101, #4402


-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists