diff --git a/spring-web/src/main/java/org/springframework/http/codec/ServerSentEvent.java b/spring-web/src/main/java/org/springframework/http/codec/ServerSentEvent.java index 9f24bd6490d..35f3ebb165d 100644 --- a/spring-web/src/main/java/org/springframework/http/codec/ServerSentEvent.java +++ b/spring-web/src/main/java/org/springframework/http/codec/ServerSentEvent.java @@ -23,7 +23,7 @@ import org.springframework.http.codec.json.Jackson2JsonEncoder; /** * Representation for a Server-Sent Event for use with Spring's reactive Web - * support. {@code Flux} or {@code Observable} is the + * support. {@code Flux} or {@code Observable} is the * reactive equivalent to Spring MVC's {@code SseEmitter}. * * @param the type of data that this event contains @@ -45,6 +45,7 @@ public class ServerSentEvent { private final String comment; + private ServerSentEvent(String id, String event, T data, Duration retry, String comment) { this.id = id; this.event = event;