fix: fixed bad code generator

This commit is contained in:
zaaarf 2023-08-25 02:33:44 +02:00
parent bee16a300d
commit 5b965f4229
No known key found for this signature in database
GPG key ID: 6445A5CD15E5B40C

View file

@ -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);
}