From 56602322d9c44b69017b345aaca5b3807fd5d427 Mon Sep 17 00:00:00 2001 From: Reinier Zwitserloot Date: Sun, 8 Nov 2009 14:52:32 +0100 Subject: Minor bug fixes and style edits. All these were found after running findbugs on the lombok sources. --- src/lombok/eclipse/handlers/HandleGetter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lombok/eclipse/handlers/HandleGetter.java') 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 { 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); -- cgit