mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-23 06:29:10 +00:00
Remove synchronized block around PathPatternParser
Removed the synchronized block around PathPatternParser, since it is now thread-safe.
This commit is contained in:
+1
-5
@@ -95,11 +95,7 @@ public abstract class RequestPredicates {
|
||||
*/
|
||||
public static Function<String, RequestPredicate> pathPredicates(PathPatternParser patternParser) {
|
||||
Assert.notNull(patternParser, "'patternParser' must not be null");
|
||||
return pattern -> {
|
||||
synchronized (patternParser) {
|
||||
return new PathPatternPredicate(patternParser.parse(pattern));
|
||||
}
|
||||
};
|
||||
return pattern -> new PathPatternPredicate(patternParser.parse(pattern));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user