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.  ### 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- 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
