Minor updates based on PR#1058

The original repo no longer exists:
https://github.com/spring-projects/spring-framework/pull/1058
This commit is contained in:
Rossen Stoyanchev 2018-03-30 13:35:41 -04:00
parent d232fffa63
commit b1048975d2
2 changed files with 4 additions and 2 deletions

View File

@ -228,7 +228,9 @@ public final class PatternsRequestCondition extends AbstractRequestCondition<Pat
matches.add(match);
}
}
matches.sort(this.pathMatcher.getPatternComparator(lookupPath));
if (matches.size() > 1) {
matches.sort(this.pathMatcher.getPatternComparator(lookupPath));
}
return matches;
}

View File

@ -162,7 +162,7 @@ public class SseEmitter extends ResponseBodyEmitter {
SseEventBuilder name(String eventName);
/**
* Add an SSE "event" line.
* Add an SSE "retry" line.
*/
SseEventBuilder reconnectTime(long reconnectTimeMillis);