and this returns a ImmutableSseEvent which is package private, so not accessible in the calling code. Would it not be better to have the build() call return a SseEvent? I hit this issue because autocomplete in Intellij when I ask it to assign the result of the statement to a variable attempts to create a variable of type ImmutableSseEvent.
When building an event I use
and this returns a
ImmutableSseEvent
which is package private, so not accessible in the calling code. Would it not be better to have thebuild()
call return aSseEvent
? I hit this issue because autocomplete in Intellij when I ask it to assign the result of the statement to a variable attempts to create a variable of typeImmutableSseEvent
.