Skip to content

Commit 6c3a972

Browse files
committed
Swap protected with no-modifier
1 parent 76092fb commit 6c3a972

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ public boolean hasNext() {
168168
return false;
169169
}
170170

171-
protected static class NetworkNode {
171+
static class NetworkNode {
172172
public byte[] ip;
173173
public int prefix;
174174
public int pointer;

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ public <T> T get(InetAddress ipAddress, Class<T> cls) throws IOException {
153153
return getRecord(ipAddress, cls).getData();
154154
}
155155

156-
protected int getIpv4Start() {
156+
int getIpv4Start() {
157157
return this.ipV4Start;
158158
}
159159

@@ -247,7 +247,7 @@ public Networks networks(boolean skipAliasedNetworks) throws
247247
}
248248
}
249249

250-
protected BufferHolder getBufferHolder() throws ClosedDatabaseException {
250+
BufferHolder getBufferHolder() throws ClosedDatabaseException {
251251
BufferHolder bufferHolder = this.bufferHolderReference.get();
252252
if (bufferHolder == null) {
253253
throw new ClosedDatabaseException();
@@ -351,7 +351,7 @@ public int[] traverseTree(byte[] ip, int node, int bitCount)
351351
return new int[]{node, i};
352352
}
353353

354-
protected int readNode(ByteBuffer buffer, int nodeNumber, int index)
354+
int readNode(ByteBuffer buffer, int nodeNumber, int index)
355355
throws InvalidDatabaseException {
356356
// index is the index of the record within the node, which
357357
// can either be 0 or 1.
@@ -384,7 +384,7 @@ protected int readNode(ByteBuffer buffer, int nodeNumber, int index)
384384
}
385385
}
386386

387-
protected <T> T resolveDataPointer(
387+
<T> T resolveDataPointer(
388388
ByteBuffer buffer,
389389
int pointer,
390390
Class<T> cls

0 commit comments

Comments
 (0)