Author: sebb
Date: Sun Jan 12 00:49:10 2014
New Revision: 1557475
URL: http://svn.apache.org/r1557475
Log:
Replace call to deprecated API
Modified:
commons/proper/net/trunk/src/main/java/examples/cidr/SubnetUtilsExample.java
Modified:
commons/proper/net/trunk/src/main/java/examples/cidr/SubnetUtilsExample.java
URL:
http://svn.apache.org/viewvc/commons/proper/net/trunk/src/main/java/examples/cidr/SubnetUtilsExample.java?rev=1557475&r1=1557474&r2=1557475&view=diff
==============================================================================
---
commons/proper/net/trunk/src/main/java/examples/cidr/SubnetUtilsExample.java
(original)
+++
commons/proper/net/trunk/src/main/java/examples/cidr/SubnetUtilsExample.java
Sun Jan 12 00:49:10 2014
@@ -53,7 +53,7 @@ public class SubnetUtilsExample {
System.out.printf("High Address:\t\t\t%s\t[%s]\n",
info.getHighAddress(),
Integer.toBinaryString(info.asInteger(info.getHighAddress())));
- System.out.printf("Total usable addresses: \t%d\n",
Integer.valueOf(info.getAddressCount()));
+ System.out.printf("Total usable addresses: \t%d\n",
Long.valueOf(info.getAddressCountLong()));
System.out.printf("Address List: %s\n\n",
Arrays.toString(info.getAllAddresses()));
final String prompt ="Enter an IP address (e.g. 192.168.0.10):";