diff options
author | Reinier Zwitserloot <reinier@zwitserloot.com> | 2011-11-15 14:22:46 +0100 |
---|---|---|
committer | Reinier Zwitserloot <reinier@zwitserloot.com> | 2011-11-15 14:22:46 +0100 |
commit | dc92425f85d2f2dd187b688ff6d218d3c8e657b6 (patch) | |
tree | e654c0016c01c34da8f5635625d04225e3c58cbd /src/core/lombok/eclipse | |
parent | 1cdd42ac10c128765d3ff642d808c00eab6a1782 (diff) | |
parent | 5cc928f471f3875f141ab1ee737cfe2613e9cdd6 (diff) | |
download | lombok-dc92425f85d2f2dd187b688ff6d218d3c8e657b6.tar.gz lombok-dc92425f85d2f2dd187b688ff6d218d3c8e657b6.tar.bz2 lombok-dc92425f85d2f2dd187b688ff6d218d3c8e657b6.zip |
Merge branch 'Issue_263' of https://github.com/jvanderhel/lombok into jvanderhel-Issue_263
Conflicts:
src/eclipseAgent/lombok/eclipse/agent/EclipsePatcher.java
Diffstat (limited to 'src/core/lombok/eclipse')
3 files changed, 3 insertions, 2 deletions
diff --git a/src/core/lombok/eclipse/handlers/HandleConstructor.java b/src/core/lombok/eclipse/handlers/HandleConstructor.java index 63b04f4c..5b7cdcaa 100644 --- a/src/core/lombok/eclipse/handlers/HandleConstructor.java +++ b/src/core/lombok/eclipse/handlers/HandleConstructor.java @@ -249,6 +249,7 @@ public class HandleConstructor { SingleNameReference assignmentNameRef = new SingleNameReference(field.name, p); setGeneratedBy(assignmentNameRef, source); Assignment assignment = new Assignment(thisX, assignmentNameRef, (int)p); + assignment.sourceStart = (int)(p >> 32); assignment.sourceEnd = assignment.statementEnd = (int)(p >> 32); setGeneratedBy(assignment, source); assigns.add(assignment); long fieldPos = (((long)field.sourceStart) << 32) | field.sourceEnd; diff --git a/src/core/lombok/eclipse/handlers/HandleEqualsAndHashCode.java b/src/core/lombok/eclipse/handlers/HandleEqualsAndHashCode.java index 83e78289..3c41f834 100644 --- a/src/core/lombok/eclipse/handlers/HandleEqualsAndHashCode.java +++ b/src/core/lombok/eclipse/handlers/HandleEqualsAndHashCode.java @@ -391,7 +391,7 @@ public class HandleEqualsAndHashCode extends EclipseAnnotationHandler<EqualsAndH resultRef = new SingleNameReference(RESULT, p); setGeneratedBy(resultRef, source); Assignment assignment = new Assignment(resultRef, addItem, pE); - assignment.sourceStart = pS; assignment.sourceEnd = pE; + assignment.sourceStart = pS; assignment.sourceEnd = assignment.statementEnd = pE; setGeneratedBy(assignment, source); statements.add(assignment); } 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; |