mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-15 12:14:31 +00:00
[fixes #3097] Update inner class type when creating a static class
This commit is contained in:
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");
|
||||
|
||||
Reference in new issue
Block a user