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