Reduce API Surface in PathPatternRegistry
This commit reduces the exposition of `PathPattern` instances throughout the `HandlerMapping` API and removes some methods from its public API. Issue: SPR-14544
This commit is contained in:
@@ -146,8 +146,8 @@ public class PathPatternRegistryTests {
|
||||
PathPattern fooTwo = this.registry.parsePattern("/f?o");
|
||||
assertThat(fooOne.compareTo(fooTwo), is(0));
|
||||
|
||||
this.registry.add(fooOne);
|
||||
this.registry.add(fooTwo);
|
||||
this.registry.register("/fo?");
|
||||
this.registry.register("/f?o");
|
||||
Set<PathPattern> matches = this.registry.findMatches("/foo");
|
||||
assertThat(getPatternList(matches), Matchers.contains("/f?o", "/fo?"));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user