mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 03:13:40 +07:00
don't qualify magic method calls unless it's really needed. qualify instance magic methods with 'this'
This commit is contained in:
+13
@@ -0,0 +1,13 @@
|
||||
import java.io.File;
|
||||
|
||||
public class Super {
|
||||
protected <T> T foo() {}
|
||||
}
|
||||
|
||||
public class Foo extends Super {
|
||||
{
|
||||
bar(this.<File>foo());<caret>
|
||||
}
|
||||
|
||||
void bar(java.io.File s) {}
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
public class Super {
|
||||
protected <T> T foo() {}
|
||||
}
|
||||
|
||||
public class Foo extends Super {
|
||||
{
|
||||
bar(fo<caret>)
|
||||
}
|
||||
|
||||
void bar(java.io.File s) {}
|
||||
}
|
||||
Reference in New Issue
Block a user