consider Optional for nullable query results
While implementing #566 I noticed, that TaskForIdQuery uses a nullable Task? result.
This also applies to TaskWithDataEntriesForIdQuery.
I would prefer using java Optional here and use the axon ResponseTypes.optionalOf(...) for query execution.
This is a good idea. Optional in query results was introduced after I designed the API (at least as far as I know) - so yes. Optional seems nice from the Java point of view but is even more complex to use out of Kotlin.... Let's go for it
Breaking change - should be at least in a minor release...
Should we do this for 3.3.0 while adding the potentially breaking changes to the view-api data classes?
No ... moved to 3.4.0
Moved to 3.6.0