mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-14 02:16:18 +00:00
Merge pull request #22 from jvanderhel/Fix_SetGeneratedByVisitor
Use newSourceEnd for sourceEnd calculation
This commit is contained in:
commit
6f4f053cc5
1 file changed
+1
-1
@@ -261,7 +261,7 @@ public final class SetGeneratedByVisitor extends ASTVisitor {
|
||||
// start = newSourceStart;
|
||||
// end = newSourceStart;
|
||||
// return ((start<<32)+end);
|
||||
return ((long)newSourceStart << 32) | (newSourceStart & INT_TO_LONG_MASK);
|
||||
return ((long)newSourceStart << 32) | (newSourceEnd & INT_TO_LONG_MASK);
|
||||
}
|
||||
|
||||
@Override public boolean visit(AllocationExpression node, BlockScope scope) {
|
||||
|
||||
Reference in new issue
Block a user