Avoid unnecessary boxing where primitives can be used
Closes gh-23267
This commit is contained in:
committed by
Sam Brannen
parent
2909de8829
commit
1728bf17fc
@@ -130,7 +130,7 @@ public class ServerSentEventHttpMessageReader implements HttpMessageReader<Objec
|
||||
sseBuilder.event(line.substring(6).trim());
|
||||
}
|
||||
else if (line.startsWith("retry:")) {
|
||||
sseBuilder.retry(Duration.ofMillis(Long.valueOf(line.substring(6).trim())));
|
||||
sseBuilder.retry(Duration.ofMillis(Long.parseLong(line.substring(6).trim())));
|
||||
}
|
||||
else if (line.startsWith(":")) {
|
||||
comment = (comment != null ? comment : new StringBuilder());
|
||||
|
||||
Reference in New Issue
Block a user