Skip to content
This repository was archived by the owner on Feb 26, 2023. It is now read-only.
Prev Previous commit
Next Next commit
call only createOnReceive only if onReceiveMethod has not yet been cr…
…eated
  • Loading branch information
dodgex committed Sep 20, 2014
commit 33648ac6f8c7ef3440abe76133a624e1a739af8c
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,9 @@ protected void setContextRef() {
@Override
protected void setInit() {
init = generatedClass.method(PRIVATE, codeModel().VOID, "init_");
createOnReceive();
if (onReceiveMethod == null) {
createOnReceive();
}
}

private void createOnReceive() {
Expand Down