Skip to content

Commit b104897

Browse files
committed
Minor updates based on PR#1058
The original repo no longer exists: #1058
1 parent d232fff commit b104897

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/condition/PatternsRequestCondition.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,9 @@ public List<String> getMatchingPatterns(String lookupPath) {
228228
matches.add(match);
229229
}
230230
}
231-
matches.sort(this.pathMatcher.getPatternComparator(lookupPath));
231+
if (matches.size() > 1) {
232+
matches.sort(this.pathMatcher.getPatternComparator(lookupPath));
233+
}
232234
return matches;
233235
}
234236

spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/annotation/SseEmitter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ public interface SseEventBuilder {
162162
SseEventBuilder name(String eventName);
163163

164164
/**
165-
* Add an SSE "event" line.
165+
* Add an SSE "retry" line.
166166
*/
167167
SseEventBuilder reconnectTime(long reconnectTimeMillis);
168168

0 commit comments

Comments
 (0)