[fixes #3097] Update inner class type when creating a static class

This commit is contained in:
Rawi01 committed 2022-01-30 00:22:36 +01:00
1 parent 36db0524e4
commit 7af752602a
4 files changed
+26

No files matched your search

@@ -2,10 +2,15 @@ final class UtilityClass {
private static long someField = System.currentTimeMillis();
static void someMethod() {
System.out.println();
new InnerClass();
new InnerStaticClass();
}
protected static class InnerClass {
private String innerInnerMember;
}
protected static class InnerStaticClass {
private String innerInnerMember;
}
@java.lang.SuppressWarnings("all")
private UtilityClass() {
throw new java.lang.UnsupportedOperationException("This is a utility class and cannot be instantiated");