Sign in
◑
Theme
android
/
platform
/
tools
/
idea
/
studio-master-dev
/
.
/
java
/
java-tests
/
testData
/
inspection
/
requireNonNull
/
beforeTernaryField.java
blob: 18058b45bd0320da11fc83371bd16bc1ecc5ac9c [
file
]
// "Replace condition with Objects.requireNonNullElse" "true"
import
java
.
util
.*;
class
X
{
String
y
;
static
String
test
(
X x
)
{
return
x
.
y
==
null
?
"foo"
<
caret
>
:
x
.
y
;
}
}