Sign in
android
/
platform
/
tools
/
idea
/
9b5d02ac8c92b1e71523cc15cb3d168d57fbd898
/
.
/
java
/
java-tests
/
testData
/
refactoring
/
extractMethod
/
CastWhenDuplicateReplacement_after.java
blob: 106ec29fb405b0d6ca23a70f0667ed15097031e9 [
file
] [
log
] [
blame
]
class
Test
{
void
foo
(
Object
x
)
{
if
(
x
instanceof
String
)
x
=
newMethod
((
String
)
x
);
if
(
x
instanceof
String
)
x
=
newMethod
((
String
)
x
);
}
private
String
newMethod
(
String
x
)
{
return
x
.
substring
(
1
);
}
}