mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
IDEA-146009 Good code is yellow: "Unboxing may produce NPE" inside forEach lambda
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
import java.util.List;
|
||||
|
||||
class Example {
|
||||
public void example(List<Foo> foos) {
|
||||
foos.forEach(foo -> foo.bar = null);
|
||||
}
|
||||
}
|
||||
|
||||
class Foo {
|
||||
public Long bar;
|
||||
}
|
||||
Reference in New Issue
Block a user