mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-11-22 12:02:05 +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