From 983d487b59d3fc30c19fa9bd1ab472468c0958d1 Mon Sep 17 00:00:00 2001 From: Reinier Zwitserloot <reinier@zwitserloot.com> Date: Fri, 31 Dec 2010 11:00:49 +0100 Subject: Starting eclipse with an open file containing an enum with @Getter on it would cause 1 error log entry to show up. No other effects other than that, but thats ugly and so thats been fixed. --- src/core/lombok/eclipse/handlers/EclipseHandlerUtil.java | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/core') diff --git a/src/core/lombok/eclipse/handlers/EclipseHandlerUtil.java b/src/core/lombok/eclipse/handlers/EclipseHandlerUtil.java index 64eaa7e2..860cf44f 100644 --- a/src/core/lombok/eclipse/handlers/EclipseHandlerUtil.java +++ b/src/core/lombok/eclipse/handlers/EclipseHandlerUtil.java @@ -298,6 +298,8 @@ public class EclipseHandlerUtil { if (declaration.initialization instanceof AllocationExpression && ((AllocationExpression)declaration.initialization).enumConstant != null) return false; + if (declaration.type == null) return false; + // Skip fields that start with $ if (declaration.name.length > 0 && declaration.name[0] == '$') return false; -- cgit