mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-12-22 20:47:57 +01:00
Add assert to IpAddressUtil.isIPv4LiteralAddress(String)
This commit is contained in:
parent
5147f6e915
commit
517fc6e0f2
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue