mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
extract method: redundant cast treatments (IDEA-125259)
This commit is contained in:
@@ -6,7 +6,7 @@ public class Test {
|
||||
}
|
||||
|
||||
private void newMethod(A o) {
|
||||
((A)o).bar();
|
||||
o.bar();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -6,6 +6,6 @@ class Test {
|
||||
}
|
||||
|
||||
private String newMethod(String x) {
|
||||
return ((String)x).substring(1);
|
||||
return x.substring(1);
|
||||
}
|
||||
}
|
||||
@@ -6,6 +6,6 @@ class Test {
|
||||
}
|
||||
|
||||
private PsiPackage newMethod(IOException targetElement) {
|
||||
return JavaDirectoryService.getInstance().getPackage((IOException)targetElement);
|
||||
return JavaDirectoryService.getInstance().getPackage(targetElement);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user