mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-10 13:17:09 +07:00
ensure that cast won't be marked as redundant for jdk7 (IDEA-82002)
(is valid though for jdk6)
This commit is contained in:
+9
-1
@@ -6,4 +6,12 @@ class A {
|
||||
System.out.println(t.<error descr="'value' has private access in 'A'">value</error>);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
abstract class Foo<T extends Foo<T>> {
|
||||
private int field;
|
||||
|
||||
public int bar(T t){
|
||||
return t.<error descr="'field' has private access in 'Foo'">field</error>;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user