diff options
author | jvanderhel <Jappe.vanderhel@gmail.com> | 2011-11-12 19:13:28 +0100 |
---|---|---|
committer | jvanderhel <Jappe.vanderhel@gmail.com> | 2011-11-12 19:13:28 +0100 |
commit | 5cc928f471f3875f141ab1ee737cfe2613e9cdd6 (patch) | |
tree | 03231098ddc1350d7896610f044a34edc674fa94 /src/core/lombok/eclipse/handlers/HandleSetter.java | |
parent | 9433db4ecdf1a525541581a73161ababee0c352c (diff) | |
download | lombok-5cc928f471f3875f141ab1ee737cfe2613e9cdd6.tar.gz lombok-5cc928f471f3875f141ab1ee737cfe2613e9cdd6.tar.bz2 lombok-5cc928f471f3875f141ab1ee737cfe2613e9cdd6.zip |
patched retrieveRightBraceOrSemiColonPosition && retrieveRightBrace so method bodies are converted instead of skipped
Set Assignment.statementEnd to prevent invalid sourceRange in Statement convert
Diffstat (limited to 'src/core/lombok/eclipse/handlers/HandleSetter.java')
-rw-r--r-- | src/core/lombok/eclipse/handlers/HandleSetter.java | 2 |
1 files changed, 1 insertions, 1 deletions
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<Setter> { 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; |