Remove synchronized block around PathPatternParser
Removed the synchronized block around PathPatternParser, since it is now thread-safe.
This commit is contained in:
@@ -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