Skip to content

Commit a334ee3

Browse files
committed
Add toString() to IpAddressMatcher.java
Closes gh-16795 Signed-off-by: wtigerhyunsu <jack951@naver.com>
1 parent 437e35d commit a334ee3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

web/src/main/java/org/springframework/security/web/util/matcher/IpAddressMatcher.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,8 +133,8 @@ private InetAddress parseAddress(String address) {
133133
@Override
134134
public String toString() {
135135
String hostAddress = this.requiredAddress.getHostAddress();
136-
return (this.nMaskBits < 0) ? "IpAddressMatcher[" + hostAddress + "]"
137-
: "IpAddressMatcher[" + hostAddress + "/" + this.nMaskBits + "]";
136+
return (this.nMaskBits < 0) ? "IpAddress [" + hostAddress + "]"
137+
: "IpAddress [" + hostAddress + "/" + this.nMaskBits + "]";
138138
}
139139

140140
}

0 commit comments

Comments
 (0)