Pavlin Radoslavov

Updated creation of IpAddress instance inside IpPrefixTest

to exclude specifying the prefix length, because it is not
applicable for IpAddress.
...@@ -118,9 +118,9 @@ public class IpPrefixTest { ...@@ -118,9 +118,9 @@ public class IpPrefixTest {
118 @Test 118 @Test
119 public void testContainsIpAddress() { 119 public void testContainsIpAddress() {
120 IpPrefix slash31 = IpPrefix.valueOf(BYTES1, 31); 120 IpPrefix slash31 = IpPrefix.valueOf(BYTES1, 31);
121 - IpAddress slash32 = IpAddress.valueOf(BYTES1, 32); 121 + IpAddress addr32 = IpAddress.valueOf(BYTES1);
122 122
123 - assertTrue(slash31.contains(slash32)); 123 + assertTrue(slash31.contains(addr32));
124 124
125 IpPrefix intf = IpPrefix.valueOf("192.168.10.101/24"); 125 IpPrefix intf = IpPrefix.valueOf("192.168.10.101/24");
126 IpAddress addr = IpAddress.valueOf("192.168.10.1"); 126 IpAddress addr = IpAddress.valueOf("192.168.10.1");
......