1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-11-25 21:42:07 +01:00

Add assert to IpAddressUtil.isIPv4LiteralAddress(String)

This commit is contained in:
Florian Schmaus 2017-12-16 12:37:11 +01:00
parent 5147f6e915
commit 517fc6e0f2

View file

@ -29,6 +29,8 @@ public class IpAddressUtil {
return false;
}
assert matcher.groupCount() == 4;
for (int i = 1; i <= 4; i++) {
String ipSegment = matcher.group(i);
int ipSegmentInt;