fb-contrib icon indicating copy to clipboard operation
fb-contrib copied to clipboard

WOC_WRITE_ONLY_COLLECTION_LOCAL false positive if collection is passed to method

Open kstarsinic opened this issue 2 years ago • 0 comments

Similar to https://github.com/mebigfatguy/fb-contrib/issues/39:

public void fail() {
    List l = new ArrayList<String>();

    l.add("a");
    l.add(giveMeAString());

    doSomethingWithList(l); // l is not really a write-only collection any more, is it?
}
    

kstarsinic avatar Aug 02 '22 18:08 kstarsinic