mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
IDEA-104754 Good code yellow: Unboxing
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
class Baz {
|
||||
Integer bar() { return 2; }
|
||||
|
||||
void g() {
|
||||
@Nullable Integer foo = bar();
|
||||
if (foo == null) {
|
||||
foo = 0;
|
||||
}
|
||||
System.out.println(foo.intValue());
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user