Author: sebb Date: Sun Mar 12 14:35:49 2017 New Revision: 1786587 URL: http://svn.apache.org/viewvc?rev=1786587&view=rev Log: NET-626 SubnetUtils#SubnetUtils - improved comment
Modified: commons/proper/net/trunk/src/changes/changes.xml commons/proper/net/trunk/src/main/java/org/apache/commons/net/util/SubnetUtils.java Modified: commons/proper/net/trunk/src/changes/changes.xml URL: http://svn.apache.org/viewvc/commons/proper/net/trunk/src/changes/changes.xml?rev=1786587&r1=1786586&r2=1786587&view=diff ============================================================================== --- commons/proper/net/trunk/src/changes/changes.xml [utf-8] (original) +++ commons/proper/net/trunk/src/changes/changes.xml [utf-8] Sun Mar 12 14:35:49 2017 @@ -71,6 +71,9 @@ This is mainly a bug-fix release. See fu However it is not source compatible with releases before 3.4, as some methods were added to the interface NtpV3Packet in 3.4 "> + <action issue="NET-626" type="update" dev="sebb" due-to="Makoto Sakaguchi"> + SubnetUtils#SubnetUtils - improved comment + </action> <action issue="NET-625" type="update" dev="sebb"> SubnetUtils - improve construction </action> Modified: commons/proper/net/trunk/src/main/java/org/apache/commons/net/util/SubnetUtils.java URL: http://svn.apache.org/viewvc/commons/proper/net/trunk/src/main/java/org/apache/commons/net/util/SubnetUtils.java?rev=1786587&r1=1786586&r2=1786587&view=diff ============================================================================== --- commons/proper/net/trunk/src/main/java/org/apache/commons/net/util/SubnetUtils.java (original) +++ commons/proper/net/trunk/src/main/java/org/apache/commons/net/util/SubnetUtils.java Sun Mar 12 14:35:49 2017 @@ -45,7 +45,7 @@ public class SubnetUtils { * Constructor that takes a CIDR-notation string, e.g. "192.168.0.1/16" * @param cidrNotation A CIDR-notation string, e.g. "192.168.0.1/16" * @throws IllegalArgumentException if the parameter is invalid, - * i.e. does not match n.n.n.n/m where n=1-3 decimal digits, m = 1-2 decimal digits in range 1-32 + * i.e. does not match n.n.n.n/m where n=1-3 decimal digits, m = 1-2 decimal digits in range 0-32 */ public SubnetUtils(String cidrNotation) { Matcher matcher = cidrPattern.matcher(cidrNotation);