Skip to content

Commit 575027a

Browse files
committed
Polishing
1 parent fae75cb commit 575027a

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

spring-web/src/main/java/org/springframework/web/util/pattern/PathPatternRouteMatcher.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16+
1617
package org.springframework.web.util.pattern;
1718

1819
import java.util.Comparator;

spring-web/src/test/java/org/springframework/web/util/pattern/PathPatternRouteMatcherTests.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,23 +22,23 @@
2222

2323
import static org.assertj.core.api.Assertions.assertThat;
2424

25-
2625
/**
27-
* Tests for the {@link PathPatternRouteMatcher}
26+
* Tests for the {@link PathPatternRouteMatcher}.
27+
*
2828
* @author Brian Clozel
29+
* @since 5.2
2930
*/
3031
public class PathPatternRouteMatcherTests {
3132

32-
PathPatternRouteMatcher routeMatcher = new PathPatternRouteMatcher(new PathPatternParser());
33-
3433
@Test
3534
public void matchRoute() {
35+
PathPatternRouteMatcher routeMatcher = new PathPatternRouteMatcher(new PathPatternParser());
3636
RouteMatcher.Route route = routeMatcher.parseRoute("/projects/spring-framework");
3737
assertThat(routeMatcher.match("/projects/{name}", route)).isTrue();
3838
}
3939

4040
@Test
41-
public void matchRouteCustomSeparator() {
41+
public void matchRouteWithCustomSeparator() {
4242
PathPatternParser pathPatternParser = new PathPatternParser();
4343
pathPatternParser.setSeparator('.');
4444
PathPatternRouteMatcher routeMatcher = new PathPatternRouteMatcher(pathPatternParser);

0 commit comments

Comments
 (0)