mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-13 09:19:13 +07:00
extract method: correct cast inserted
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user