fix: fixed bad argument count

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

View file

@ -174,7 +174,7 @@ public class GEBProcessor extends AbstractProcessor {
String varName = String.format("listener%d", counter);
callListenersBuilder
.addStatement("$T $L = $N.get($T.class)", this.listenerInterface, varName, listenersParam, listener.parent)
.addStatement("if($L.isActive()) (($T) $L).$L($N)", varName, listener.parent,
.addStatement("if($L.isActive()) (($T) $L).$L($N)", varName, listener.parent, varName,
listener.method.getSimpleName().toString(), eventParam);
}