aboutsummaryrefslogtreecommitdiff
path: root/src/core/lombok/javac
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/lombok/javac')
-rw-r--r--src/core/lombok/javac/handlers/HandleUtilityClass.java7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/core/lombok/javac/handlers/HandleUtilityClass.java b/src/core/lombok/javac/handlers/HandleUtilityClass.java
index 716d6d63..b20aee3a 100644
--- a/src/core/lombok/javac/handlers/HandleUtilityClass.java
+++ b/src/core/lombok/javac/handlers/HandleUtilityClass.java
@@ -128,8 +128,11 @@ public class HandleUtilityClass extends JavacAnnotationHandler<UtilityClass> {
JCClassDecl innerClassDecl = (JCClassDecl) element.get();
innerClassDecl.mods.flags |= Flags.STATIC;
ClassSymbol innerClassSymbol = innerClassDecl.sym;
- if (innerClassSymbol != null && innerClassSymbol.type instanceof ClassType) {
- ((ClassType) innerClassSymbol.type).setEnclosingType(Type.noType);
+ if (innerClassSymbol != null) {
+ if (innerClassSymbol.type instanceof ClassType) {
+ ((ClassType) innerClassSymbol.type).setEnclosingType(Type.noType);
+ }
+ innerClassSymbol.erasure_field = null;
}
}
}