mirror of
https://github.com/zaaarf/geb-processor.git
synced 2024-11-23 02:14:50 +01:00
fix: fixed bad code generator
This commit is contained in:
parent
bee16a300d
commit
5b965f4229
1 changed files with 1 additions and 1 deletions
|
@ -173,7 +173,7 @@ public class GEBProcessor extends AbstractProcessor {
|
||||||
for(ListenerContainer listener : ordered) {
|
for(ListenerContainer listener : ordered) {
|
||||||
String varName = String.format("listener%d", counter);
|
String varName = String.format("listener%d", counter);
|
||||||
callListenersBuilder
|
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,
|
.addStatement("if($L.isActive()) (($T) $L).$L($N)", varName, listener.parent,
|
||||||
listener.method.getSimpleName().toString(), eventParam);
|
listener.method.getSimpleName().toString(), eventParam);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue