Skip to content

WOC_WRITE_ONLY_COLLECTION_LOCAL false positive if collection is passed to method #433

@kstarsinic

Description

@kstarsinic

Similar to #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?
}
    

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions