mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
remove redundant casts when extract changed parameter type accordingly (IDEA-79743)
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
class Test {
|
||||
void foo () {
|
||||
int a = 1;
|
||||
<selection>System.out.println("" + (Object)a);</selection>
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
class Test {
|
||||
void foo () {
|
||||
int a = 1;
|
||||
newMethod(a);
|
||||
}
|
||||
|
||||
private void newMethod(Object a) {
|
||||
System.out.println("" + a);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user