Skip to content

Commit 87157d3

Browse files
committed
Polishing
1 parent 95f1813 commit 87157d3

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

spring-web/src/main/java/org/springframework/http/codec/ServerSentEvent.java

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2021 the original author or authors.
2+
* Copyright 2002-2024 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -104,13 +104,13 @@ public T data() {
104104

105105
@Override
106106
public String toString() {
107-
return ("ServerSentEvent [id = '" + this.id + "\', event='" + this.event + "\', retry=" +
107+
return ("ServerSentEvent [id = '" + this.id + "', event='" + this.event + "', retry=" +
108108
this.retry + ", comment='" + this.comment + "', data=" + this.data + ']');
109109
}
110110

111111

112112
/**
113-
* Return a builder for a {@code SseEvent}.
113+
* Return a builder for a {@code ServerSentEvent}.
114114
* @param <T> the type of data that this event contains
115115
* @return the builder
116116
*/
@@ -119,7 +119,7 @@ public static <T> Builder<T> builder() {
119119
}
120120

121121
/**
122-
* Return a builder for a {@code SseEvent}, populated with the given {@linkplain #data() data}.
122+
* Return a builder for a {@code ServerSentEvent}, populated with the given {@linkplain #data() data}.
123123
* @param <T> the type of data that this event contains
124124
* @return the builder
125125
*/
@@ -129,7 +129,7 @@ public static <T> Builder<T> builder(T data) {
129129

130130

131131
/**
132-
* A mutable builder for a {@code SseEvent}.
132+
* A mutable builder for a {@code ServerSentEvent}.
133133
*
134134
* @param <T> the type of data that this event contains
135135
*/

spring-web/src/main/java/org/springframework/web/service/invoker/AbstractNamedValueArgumentResolver.java

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2023 the original author or authors.
2+
* Copyright 2002-2024 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -47,7 +47,6 @@ public abstract class AbstractNamedValueArgumentResolver implements HttpServiceA
4747

4848
protected final Log logger = LogFactory.getLog(getClass());
4949

50-
5150
@Nullable
5251
private final ConversionService conversionService;
5352

@@ -248,7 +247,6 @@ public NamedValueInfo(
248247
public NamedValueInfo update(String name, boolean required, @Nullable String defaultValue) {
249248
return new NamedValueInfo(name, required, defaultValue, this.label, this.multiValued);
250249
}
251-
252250
}
253251

254252
}

0 commit comments

Comments
 (0)