Sign in
android
/
platform
/
tools
/
idea
/
9b5d02ac8c92b1e71523cc15cb3d168d57fbd898
/
.
/
java
/
java-tests
/
testData
/
refactoring
/
extractMethod
/
CastWhenDuplicateReplacement.java
blob: 68a91fd51b8f1ac8350bc24e3809700a3d73ea0d [
file
] [
log
] [
blame
]
class
Test
{
void
foo
(
Object
x
)
{
if
(
x
instanceof
String
)
x
=
((
String
)
x
).
substring
(
1
);
if
(
x
instanceof
String
)
x
=
<
selection
>((
String
)
x
).
substring
(
1
)</
selection
>;
}
}