diff options
author | Reinier Zwitserloot <reinier@tipit.to> | 2009-11-08 14:52:32 +0100 |
---|---|---|
committer | Reinier Zwitserloot <reinier@tipit.to> | 2009-11-08 14:52:32 +0100 |
commit | 56602322d9c44b69017b345aaca5b3807fd5d427 (patch) | |
tree | a1e92bf008b76aa16c52985e7702cd283e383a4a /src/lombok/eclipse/handlers | |
parent | e14e8c3df3d7baa700a048b83e430db5c76ca410 (diff) | |
download | lombok-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')
-rw-r--r-- | src/lombok/eclipse/handlers/EclipseHandlerUtil.java | 2 | ||||
-rw-r--r-- | src/lombok/eclipse/handlers/HandleGetter.java | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/lombok/eclipse/handlers/EclipseHandlerUtil.java b/src/lombok/eclipse/handlers/EclipseHandlerUtil.java index 88559436..2f676d09 100644 --- a/src/lombok/eclipse/handlers/EclipseHandlerUtil.java +++ b/src/lombok/eclipse/handlers/EclipseHandlerUtil.java @@ -348,7 +348,7 @@ public class EclipseHandlerUtil { * Create an annotation of the given name, and is marked as being generated by the given source. */ public static MarkerAnnotation makeMarkerAnnotation(char[][] name, ASTNode source) { - long pos = source.sourceStart << 32 | source.sourceEnd; + long pos = (long)source.sourceStart << 32 | source.sourceEnd; TypeReference typeRef = new QualifiedTypeReference(name, new long[] {pos, pos, pos}); Eclipse.setGeneratedBy(typeRef, source); MarkerAnnotation ann = new MarkerAnnotation(typeRef, (int)(pos >> 32)); 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); |