We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cb2b519 commit 2e6a20fCopy full SHA for 2e6a20f
web/src/main/java/org/springframework/security/web/util/matcher/IpAddressMatcher.java
@@ -56,8 +56,9 @@ public IpAddressMatcher(String ipAddress) {
56
this.nMaskBits = -1;
57
}
58
this.requiredAddress = parseAddress(ipAddress);
59
- Assert.isTrue(this.requiredAddress.getAddress().length * 8 >= this.nMaskBits,
60
- String.format("IP address %s is too short for bitmask of length %d", ipAddress, this.nMaskBits));
+ String finalIpAddress = ipAddress;
+ Assert.isTrue(this.requiredAddress.getAddress().length * 8 >= this.nMaskBits, () -> String
61
+ .format("IP address %s is too short for bitmask of length %d", finalIpAddress, this.nMaskBits));
62
63
64
@Override
0 commit comments