aboutsummaryrefslogtreecommitdiff
path: root/src/core/lombok/eclipse/handlers
diff options
context:
space:
mode:
authorAndre Brait <andrebrait@gmail.com>2020-07-14 11:17:07 +0200
committerRoel Spilker <r.spilker@gmail.com>2020-09-24 22:25:15 +0200
commita8a811b245528d74de8110dac8161c3f51bf2df5 (patch)
treee7cea7aa9e16fca3c07c4ecc51ca95a734865e85 /src/core/lombok/eclipse/handlers
parent04a10be919ffe89142d173cf384f23c9b9b39f73 (diff)
downloadlombok-a8a811b245528d74de8110dac8161c3f51bf2df5.tar.gz
lombok-a8a811b245528d74de8110dac8161c3f51bf2df5.tar.bz2
lombok-a8a811b245528d74de8110dac8161c3f51bf2df5.zip
Fix using source start instead of source end
Co-authored-by: Rawi01 <Rawi01@users.noreply.github.com>
Diffstat (limited to 'src/core/lombok/eclipse/handlers')
-rwxr-xr-xsrc/core/lombok/eclipse/handlers/HandleEqualsAndHashCode.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/lombok/eclipse/handlers/HandleEqualsAndHashCode.java b/src/core/lombok/eclipse/handlers/HandleEqualsAndHashCode.java
index 93bc92de..44676b3c 100755
--- a/src/core/lombok/eclipse/handlers/HandleEqualsAndHashCode.java
+++ b/src/core/lombok/eclipse/handlers/HandleEqualsAndHashCode.java
@@ -304,7 +304,7 @@ public class HandleEqualsAndHashCode extends EclipseAnnotationHandler<EqualsAndH
setGeneratedBy(hashCodeCacheRef.receiver, source);
EqualExpression cacheNotZero = new EqualExpression(hashCodeCacheRef, makeIntLiteral("0".toCharArray(), source), OperatorIds.NOT_EQUAL);
setGeneratedBy(cacheNotZero, source);
- ReturnStatement returnCache = new ReturnStatement(hashCodeCacheRef, pS, pS);
+ ReturnStatement returnCache = new ReturnStatement(hashCodeCacheRef, pS, pE);
setGeneratedBy(returnCache, source);
IfStatement ifStatement = new IfStatement(cacheNotZero, returnCache, pS, pE);
setGeneratedBy(ifStatement, source);