Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WOC_WRITE_ONLY_COLLECTION_LOCAL false positive if collection is passed to method #433

Open
kstarsinic opened this issue Aug 2, 2022 · 0 comments

Comments

@kstarsinic
Copy link

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?
}
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants