mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 15:27:45 +07:00
folowup to IDEA-149950: changed "package local" to JLS-conformant "package-private"
This commit is contained in:
+1
-1
@@ -11,7 +11,7 @@ class a extends Component {
|
||||
s.<error descr="'createBuffers(int, java.awt.BufferCapabilities)' has protected access in 'java.awt.Component.FlipBufferStrategy'">createBuffers</error>(1,null);
|
||||
|
||||
// TODO
|
||||
// now cannot distinquish private from package local in class files
|
||||
// now cannot distinquish private from package-private in class files
|
||||
//< error descr="'java.awt.Component.SingleBufferStrategy' has private access in 'java.awt.Component'">SingleBufferStrategy< /error> s2 = null;
|
||||
//Object o = s2.< error descr="'caps' has private access in 'java.awt.Component.SingleBufferStrategy'">caps< /error>;
|
||||
}
|
||||
|
||||
+1
-1
@@ -4,7 +4,7 @@ interface i {
|
||||
}
|
||||
|
||||
public class a implements i {
|
||||
void <error descr="'ff()' in 'a' clashes with 'ff()' in 'i'; attempting to assign weaker access privileges ('package local'); was 'public'">ff</error>() {}
|
||||
void <error descr="'ff()' in 'a' clashes with 'ff()' in 'i'; attempting to assign weaker access privileges ('package-private'); was 'public'">ff</error>() {}
|
||||
}
|
||||
class ai implements i {
|
||||
public <error descr="'ff()' in 'ai' clashes with 'ff()' in 'i'; attempting to use incompatible return type">int</error> ff() { return 0;}
|
||||
|
||||
+1
-1
@@ -34,7 +34,7 @@ interface i2 {
|
||||
class weak {
|
||||
void f1() {}
|
||||
}
|
||||
<error descr="'f1()' in 'weak' clashes with 'f1()' in 'i'; attempting to assign weaker access privileges ('package local'); was 'public'">class a2 extends weak implements i</error> {
|
||||
<error descr="'f1()' in 'weak' clashes with 'f1()' in 'i'; attempting to assign weaker access privileges ('package-private'); was 'public'">class a2 extends weak implements i</error> {
|
||||
}
|
||||
|
||||
class a3 {
|
||||
|
||||
+1
-1
@@ -6,7 +6,7 @@ public class A extends D{
|
||||
class C extends x.sub.B {
|
||||
int n=<error descr="'k' is not public in 'x.A'. Cannot be accessed from outside package">k</error>;
|
||||
|
||||
// can call despite inherited through package local from other package
|
||||
// can call despite inherited through package-private from other package
|
||||
void f() { A.staticF(); }
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// package local class in the middle
|
||||
// package-private class in the middle
|
||||
|
||||
package x;
|
||||
class ComponentClass {
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Make 'a.i' package local" "true"
|
||||
// "Make 'a.i' package-private" "true"
|
||||
import java.io.*;
|
||||
|
||||
class a {
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Make 'a.i' package local" "true"
|
||||
// "Make 'a.i' package-private" "true"
|
||||
import java.io.*;
|
||||
|
||||
class a {
|
||||
|
||||
Reference in New Issue
Block a user