In following code, variable a isn't useless. But findbugs says it's useless.
:::java List<string> a = new ArrayList<>(); a.add("A"); a.forEach(System.out::println);</string>
Bugs: #1428
Thank you for bug report.
Fixed: https://code.google.com/p/findbugs/source/detail?r=240e1e6ecb7c651a2da78541f341f60c67b89c86
Log in to post a comment.
Thank you for bug report.
Fixed:
https://code.google.com/p/findbugs/source/detail?r=240e1e6ecb7c651a2da78541f341f60c67b89c86