Gitiles
Code Review
Sign In
android-review.linaro.org
/
platform
/
tools
/
idea
/
9b5d02ac8c92b1e71523cc15cb3d168d57fbd898
/
.
/
java
/
java-tests
/
testData
/
inspection
/
dataFlow
/
NullableLocalVariable
/
src
/
Npe.java
blob: ce2328560e2c021f8291d35fbf1aa77dbf9cc83c [
file
] [
log
] [
blame
]
import
org
.
jetbrains
.
annotations
.
NotNull
;
import
org
.
jetbrains
.
annotations
.
Nullable
;
public
class
Npe
{
void
bar
()
{
final
@Nullable
Object
o
=
foo
();
o
.
hashCode
();
// NPE
}
@Nullable
Object
foo
()
{
return
null
;
}
}