Skip to content

Commit

Permalink
Make the SubnetUtils class package private
Browse files Browse the repository at this point in the history
  • Loading branch information
ds58 committed Dec 2, 2024
1 parent 9ff96bc commit bf3010f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ros2-library/src/main/java/us/ihmc/ros2/SubnetUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -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})";
Expand All @@ -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);
}

Expand All @@ -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));
}

Expand Down

0 comments on commit bf3010f

Please sign in to comment.