aboutsummaryrefslogtreecommitdiff
path: root/src/lombok/eclipse/handlers/HandleGetter.java
diff options
context:
space:
mode:
authorReinier Zwitserloot <reinier@tipit.to>2009-11-08 14:52:32 +0100
committerReinier Zwitserloot <reinier@tipit.to>2009-11-08 14:52:32 +0100
commit56602322d9c44b69017b345aaca5b3807fd5d427 (patch)
treea1e92bf008b76aa16c52985e7702cd283e383a4a /src/lombok/eclipse/handlers/HandleGetter.java
parente14e8c3df3d7baa700a048b83e430db5c76ca410 (diff)
downloadlombok-56602322d9c44b69017b345aaca5b3807fd5d427.tar.gz
lombok-56602322d9c44b69017b345aaca5b3807fd5d427.tar.bz2
lombok-56602322d9c44b69017b345aaca5b3807fd5d427.zip
Minor bug fixes and style edits. All these were found after running findbugs on the lombok sources.
Diffstat (limited to 'src/lombok/eclipse/handlers/HandleGetter.java')
-rw-r--r--src/lombok/eclipse/handlers/HandleGetter.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lombok/eclipse/handlers/HandleGetter.java b/src/lombok/eclipse/handlers/HandleGetter.java
index 7bff701e..4a9930e3 100644
--- a/src/lombok/eclipse/handlers/HandleGetter.java
+++ b/src/lombok/eclipse/handlers/HandleGetter.java
@@ -142,7 +142,7 @@ public class HandleGetter implements EclipseAnnotationHandler<Getter> {
method.thrownExceptions = null;
method.typeParameters = null;
method.bits |= ECLIPSE_DO_NOT_TOUCH_FLAG;
- Expression fieldExpression = new SingleNameReference(field.name, (field.declarationSourceStart << 32) | field.declarationSourceEnd);
+ Expression fieldExpression = new SingleNameReference(field.name, ((long)field.declarationSourceStart << 32) | field.declarationSourceEnd);
Eclipse.setGeneratedBy(fieldExpression, source);
Statement returnStatement = new ReturnStatement(fieldExpression, field.sourceStart, field.sourceEnd);
Eclipse.setGeneratedBy(returnStatement, source);