You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by se...@apache.org on 2014/10/14 15:29:28 UTC

svn commit: r1631751 - in /commons/proper/net/trunk/src: changes/changes.xml main/java/org/apache/commons/net/util/SubnetUtils.java

Author: sebb
Date: Tue Oct 14 13:29:27 2014
New Revision: 1631751

URL: http://svn.apache.org/r1631751
Log:
NET-556 Make SubnetInfo.isInRange(int) public

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=1631751&r1=1631750&r2=1631751&view=diff
==============================================================================
--- commons/proper/net/trunk/src/changes/changes.xml [utf-8] (original)
+++ commons/proper/net/trunk/src/changes/changes.xml [utf-8] Tue Oct 14 13:29:27 2014
@@ -68,6 +68,9 @@ This is mainly a bug-fix release. See fu
   IMAPExportMbox (example app) allows IMAP folders to be exported into an mbox file.
   This is the inverse of the IMAPImportMbox example added previously
         ">
+            <action issue="NET-556" type="update" dev="sebb" due-to="Andy Rosa">
+            Make SubnetInfo.isInRange(int) public
+            </action>
             <action issue="NET-550" type="fix" dev="sebb" due-to="Geoffrey Hardy">
             Default FTPClient bufferSize results in very slow retrieve transfers
             Fix code in Util#copyStream (also copyReader) that failed to use the proper default for buffer size 0

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=1631751&r1=1631750&r2=1631751&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 Tue Oct 14 13:29:27 2014
@@ -126,7 +126,7 @@ public class SubnetUtils {
             return isInRange(toInteger(address));
         }
 
-        private boolean isInRange(int address) {
+        public boolean isInRange(int address) {
             long addLong = address & UNSIGNED_INT_MASK;
             long lowLong = low() & UNSIGNED_INT_MASK;
             long highLong = high() & UNSIGNED_INT_MASK;