neilcsmith-net commented on issue #4545:
URL: https://github.com/apache/netbeans/issues/4545#issuecomment-1231383961
Thanks @mbien I think the whole PR might need reverting - there's a problem
with collections as well as arrays. This shows a warning in 15 but not in 14.
```java
public class Test1 {
private final List<String> collection = new ArrayList<>();
public Test1() {
use(collection);
}
public boolean isEmpty() {
return collection.isEmpty();
}
private void use(List<String> list) {
list.add("FOO");
}
}
```
We might need some tests for _not_ containing this warning too? :smile:
--
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