vlingo/xoom-turbo

Unnecessary state object generation

hurelhuyag opened this issue · 1 comments

I just tried to generate PetClinic project again with latest xoom 1.5.3-SNAPSHOT version and I found this. In this example, PetEntity::register method constructing new PetState object and passing it to PetRegistered event and PetRegistered event object deconstructing it. Instead, PetEntity can just pass values directly to PetRegistered event.
Screenshot from 2021-03-26 10-37-17

Thanks @hurelhuyag. I discussed this with @danilo-ambrosio and we decided for now we will keep it this way. We will likely change as you suggested, but for now it is lower priority.