extract method: correct cast inserted

This commit is contained in:
anna
2010-11-18 12:18:51 +03:00
parent b3cfdc9e2b
commit eee43e56f4
2 changed files with 2 additions and 2 deletions
@@ -262,7 +262,7 @@ public class InputVariables {
buffer.append(myFolding.getGeneratedCallArgument(data));
} else {
if (!TypeConversionUtil.isAssignable(data.type, data.variable.getType())) {
buffer.append("(").append(data.variable.getType().getCanonicalText()).append(")");
buffer.append("(").append(data.type.getCanonicalText()).append(")");
}
buffer.append(data.variable.getName());
}
@@ -1,7 +1,7 @@
public class Test {
void foo(Object o) {
if (o instanceof A) {
newMethod((Object) o);
newMethod((A) o);
}
}