From 5cc928f471f3875f141ab1ee737cfe2613e9cdd6 Mon Sep 17 00:00:00 2001 From: jvanderhel Date: Sat, 12 Nov 2011 19:13:28 +0100 Subject: patched retrieveRightBraceOrSemiColonPosition && retrieveRightBrace so method bodies are converted instead of skipped Set Assignment.statementEnd to prevent invalid sourceRange in Statement convert --- src/core/lombok/eclipse/handlers/HandleSetter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/core/lombok/eclipse/handlers/HandleSetter.java') diff --git a/src/core/lombok/eclipse/handlers/HandleSetter.java b/src/core/lombok/eclipse/handlers/HandleSetter.java index a32d45fc..ea81965b 100644 --- a/src/core/lombok/eclipse/handlers/HandleSetter.java +++ b/src/core/lombok/eclipse/handlers/HandleSetter.java @@ -198,7 +198,7 @@ public class HandleSetter extends EclipseAnnotationHandler { NameReference fieldNameRef = new SingleNameReference(field.name, p); setGeneratedBy(fieldNameRef, source); Assignment assignment = new Assignment(fieldRef, fieldNameRef, (int)p); - assignment.sourceStart = pS; assignment.sourceEnd = pE; + assignment.sourceStart = pS; assignment.sourceEnd = assignment.statementEnd = pE; setGeneratedBy(assignment, source); method.bodyStart = method.declarationSourceStart = method.sourceStart = source.sourceStart; method.bodyEnd = method.declarationSourceEnd = method.sourceEnd = source.sourceEnd; -- cgit