Skip to content

Commit 4380d9c

Browse files
committed
Remove redundant Regex escapes
1 parent f4604cf commit 4380d9c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

spring-aop/src/test/java/org/springframework/aop/support/ClassFiltersTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ void union() {
5454
assertThat(union.matches(RuntimeException.class)).isTrue();
5555
assertThat(union.matches(TestBean.class)).isTrue();
5656
assertThat(union.toString())
57-
.matches("^.+UnionClassFilter: \\[.+RootClassFilter: .+Exception, .+RootClassFilter: .+TestBean\\]$");
57+
.matches("^.+UnionClassFilter: \\[.+RootClassFilter: .+Exception, .+RootClassFilter: .+TestBean]$");
5858
}
5959

6060
@Test

spring-web/src/main/java/org/springframework/web/util/UriComponentsBuilder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public class UriComponentsBuilder implements UriBuilder, Cloneable {
8181

8282
private static final String HOST_PATTERN = "(" + HOST_IPV6_PATTERN + "|" + HOST_IPV4_PATTERN + ")";
8383

84-
private static final String PORT_PATTERN = "(\\{[^}]+\\}?|[^/?#\\\\]*)";
84+
private static final String PORT_PATTERN = "(\\{[^}]+}?|[^/?#\\\\]*)";
8585

8686
private static final String PATH_PATTERN = "([^?#]*)";
8787

0 commit comments

Comments
 (0)