aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJan Rieke <it@janrieke.de>2018-09-11 20:37:16 +0200
committerJan Rieke <it@janrieke.de>2018-09-11 20:44:19 +0200
commita2b884c71194c780d37ccbd84561abd6a0f63741 (patch)
tree53c91b1c713c8db0523999bb28592ef8f40d7e08 /src
parentda59d2d6375afcfcf6cb43288adba61cb99a49e8 (diff)
downloadlombok-a2b884c71194c780d37ccbd84561abd6a0f63741.tar.gz
lombok-a2b884c71194c780d37ccbd84561abd6a0f63741.tar.bz2
lombok-a2b884c71194c780d37ccbd84561abd6a0f63741.zip
SuperBuilder: fixed ObtainVia
Diffstat (limited to 'src')
-rw-r--r--src/core/lombok/eclipse/handlers/HandleSuperBuilder.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/lombok/eclipse/handlers/HandleSuperBuilder.java b/src/core/lombok/eclipse/handlers/HandleSuperBuilder.java
index 1bbc514e..bb78e82a 100644
--- a/src/core/lombok/eclipse/handlers/HandleSuperBuilder.java
+++ b/src/core/lombok/eclipse/handlers/HandleSuperBuilder.java
@@ -646,9 +646,9 @@ public class HandleSuperBuilder extends EclipseAnnotationHandler<SuperBuilder> {
boolean obtainIsStatic = bfd.obtainVia.isStatic();
for (int i = 0; i < tgt.length; i++) {
MessageSend obtainExpr = new MessageSend();
- obtainExpr.receiver = obtainIsStatic ? new SingleNameReference(type.getName().toCharArray(), 0) : new ThisReference(0, 0);
+ obtainExpr.receiver = obtainIsStatic ? new SingleNameReference(type.getName().toCharArray(), 0) : new SingleNameReference(instanceVariableName.toCharArray(), 0);
obtainExpr.selector = obtainName.toCharArray();
- if (obtainIsStatic) obtainExpr.arguments = new Expression[] {new ThisReference(0, 0)};
+ if (obtainIsStatic) obtainExpr.arguments = new Expression[] {new SingleNameReference(instanceVariableName.toCharArray(), 0)};
tgt[i] = obtainExpr;
}
}