Java class with static-only methods can contain 'protected' members (#1257)

#KT-19651 Fixed
This commit is contained in:
Toshiaki Kameyama
2017-09-14 21:47:10 +09:00
committed by Simon Ogorodnik
parent 0f9d31c9d1
commit cd6201c5df
9 changed files with 94 additions and 15 deletions
+11
View File
@@ -0,0 +1,11 @@
class Util {
public static final String publicStr = "";
protected static final String protectedStr = "";
static final String packageStr = "";
private static final String privateStr = "";
public static void publicMethod() {}
protected static void protectedMethod() {}
static void packageMethod() {}
private static void privateMethod() {}
}