Skip to content

Commit 4d93a71

Browse files
committed
Make Networks final, drop public
1 parent be0e074 commit 4d93a71

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main/java/com/maxmind/db/Networks.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
*
1515
* @param <T> The type of data returned by the iterator.
1616
*/
17-
public class Networks<T> implements Iterator<DatabaseRecord<T>> {
17+
public final class Networks<T> implements Iterator<DatabaseRecord<T>> {
1818
private final Reader reader;
1919
private final Stack<NetworkNode> nodes;
2020
private NetworkNode lastNode;
@@ -105,7 +105,7 @@ public DatabaseRecord<T> next() {
105105
}
106106
}
107107

108-
public boolean isInIpv4Subtree(byte[] ip) {
108+
private boolean isInIpv4Subtree(byte[] ip) {
109109
if (ip.length != 16) {
110110
return false;
111111
}
@@ -174,7 +174,7 @@ static class NetworkNode {
174174
* @param prefix The prefix of the node.
175175
* @param pointer The node number
176176
*/
177-
public NetworkNode(byte[] ip, int prefix, int pointer) {
177+
NetworkNode(byte[] ip, int prefix, int pointer) {
178178
this.ip = ip;
179179
this.prefix = prefix;
180180
this.pointer = pointer;

0 commit comments

Comments
 (0)