Sign in
◑
Theme
android
/
platform
/
tools
/
idea
/
studio-master-dev
/
.
/
java
/
java-tests
/
testData
/
inspection
/
patternVariableCanBeUsed
/
afterWhile2.java
blob: 0dc48f528943c9a657f37bd16cf541a1c3cc7241 [
file
]
// "Replace 'n' with pattern variable" "true"
class
X
{
void
test
(
Object
obj
)
{
while
(!(
obj
instanceof
Node
n
))
{
obj
=
getNext
();
}
System
.
out
.
println
(
n
);
}
native
Object
getNext
();
interface
Node
{}
}