summaryrefslogtreecommitdiff
path: root/src/main/java/ftbsc/geb/processor
diff options
context:
space:
mode:
author zaaarf <zaaarf@proton.me>2023-08-25 02:33:44 +0200
committer zaaarf <zaaarf@proton.me>2023-08-25 02:33:44 +0200
commit5b965f42293028ff1e99b5aa1861a397e8032ebe (patch)
tree81db09c22713a3c612b17a31bcf352e53388ec49 /src/main/java/ftbsc/geb/processor
parentbee16a300dd2d2a691ecc4625e2922ee1ad9b94d (diff)
fix: fixed bad code generator0.1.2
Diffstat (limited to 'src/main/java/ftbsc/geb/processor')
-rw-r--r--src/main/java/ftbsc/geb/processor/GEBProcessor.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/ftbsc/geb/processor/GEBProcessor.java b/src/main/java/ftbsc/geb/processor/GEBProcessor.java
index 926173a..7dbaeb5 100644
--- a/src/main/java/ftbsc/geb/processor/GEBProcessor.java
+++ b/src/main/java/ftbsc/geb/processor/GEBProcessor.java
@@ -173,7 +173,7 @@ public class GEBProcessor extends AbstractProcessor {
for(ListenerContainer listener : ordered) {
String varName = String.format("listener%d", counter);
callListenersBuilder
- .addStatement("$T $L = $N.get($T.class)", varName, this.listenerInterface, listenersParam, listener.parent)
+ .addStatement("$T $L = $N.get($T.class)", this.listenerInterface, varName, listenersParam, listener.parent)
.addStatement("if($L.isActive()) (($T) $L).$L($N)", varName, listener.parent,
listener.method.getSimpleName().toString(), eventParam);
}