-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make the SubnetUtils class package private
- Loading branch information
Showing
1 changed file
with
3 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,7 +25,7 @@ | |
* @author <[email protected]> | ||
* @since 2.0 | ||
*/ | ||
public class SubnetUtils { | ||
class SubnetUtils { | ||
|
||
private static final String IP_ADDRESS = "(\\d{1,3})\\.(\\d{1,3})\\.(\\d{1,3})\\.(\\d{1,3})"; | ||
private static final String SLASH_FORMAT = IP_ADDRESS + "/(\\d{1,3})"; | ||
|
@@ -48,7 +48,7 @@ public class SubnetUtils { | |
* @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-3 decimal digits in range 1-32 | ||
*/ | ||
public SubnetUtils(String cidrNotation) { | ||
SubnetUtils(String cidrNotation) { | ||
calculate(cidrNotation); | ||
} | ||
|
||
|
@@ -59,7 +59,7 @@ public SubnetUtils(String cidrNotation) { | |
* @throws IllegalArgumentException if the address or mask is invalid, | ||
* i.e. does not match n.n.n.n where n=1-3 decimal digits and the mask is not all zeros | ||
*/ | ||
public SubnetUtils(String address, String mask) { | ||
SubnetUtils(String address, String mask) { | ||
calculate(toCidrNotation(address, mask)); | ||
} | ||
|
||
|