diff --git a/src/main/java/com/maxmind/db/Networks.java b/src/main/java/com/maxmind/db/Networks.java index 2d7efe6b..61d32e4f 100644 --- a/src/main/java/com/maxmind/db/Networks.java +++ b/src/main/java/com/maxmind/db/Networks.java @@ -14,7 +14,7 @@ * * @param The type of data returned by the iterator. */ -public class Networks implements Iterator> { +public final class Networks implements Iterator> { private final Reader reader; private final Stack nodes; private NetworkNode lastNode; @@ -105,7 +105,7 @@ public DatabaseRecord next() { } } - public boolean isInIpv4Subtree(byte[] ip) { + private boolean isInIpv4Subtree(byte[] ip) { if (ip.length != 16) { return false; } @@ -174,7 +174,7 @@ static class NetworkNode { * @param prefix The prefix of the node. * @param pointer The node number */ - public NetworkNode(byte[] ip, int prefix, int pointer) { + NetworkNode(byte[] ip, int prefix, int pointer) { this.ip = ip; this.prefix = prefix; this.pointer = pointer;