Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions checkstyle.xml
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@
<module name="JavadocType"/>
<module name="JavadocVariable">
<property name="tokens" value="VARIABLE_DEF"/>
<property name="scope" value="public"/>
<property name="accessModifiers" value="public"/>
</module>
<module name="MissingJavadocType">
<property name="scope" value="protected"/>
Expand Down Expand Up @@ -383,4 +383,4 @@
<property name="influenceFormat" value="1"/>
</module>
</module>
</module>
</module>
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@
<dependency>
<groupId>com.puppycrawl.tools</groupId>
<artifactId>checkstyle</artifactId>
<version>10.21.4</version>
<version>10.22.0</version>
</dependency>
</dependencies>
<executions>
Expand Down
9 changes: 6 additions & 3 deletions src/main/java/com/maxmind/db/Networks.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public final class Networks<T> implements Iterator<DatabaseRecord<T>> {
private final boolean includeAliasedNetworks;
private final ByteBuffer buffer; /* Stores the buffer for Next() calls */
private final Class<T> typeParameterClass;

/**
* Constructs a Networks instance.
*
Expand All @@ -30,7 +30,7 @@ public final class Networks<T> implements Iterator<DatabaseRecord<T>> {
* @param typeParameterClass The type of data returned by the iterator.
* @throws ClosedDatabaseException Exception for a closed database.
*/
Networks(Reader reader, boolean includeAliasedNetworks, Class<T> typeParameterClass)
Networks(Reader reader, boolean includeAliasedNetworks, Class<T> typeParameterClass)
throws ClosedDatabaseException {
this(reader, includeAliasedNetworks, new NetworkNode[]{}, typeParameterClass);
}
Expand Down Expand Up @@ -117,7 +117,7 @@ private boolean isInIpv4Subtree(byte[] ip) {
}
return true;
}

/**
* hasNext prepares the next network for reading with the Network method. It
* returns true if there is another network to be processed and false if there
Expand Down Expand Up @@ -168,8 +168,11 @@ public boolean hasNext() {
}

static class NetworkNode {
/** The IP address of the node. */
public byte[] ip;
/** The prefix of the node. */
public int prefix;
/** The node number. */
public int pointer;

/**
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/maxmind/db/Reader.java
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ int record = traverseResult[0];
* @throws ClosedDatabaseException Exception for a closed databased.
* @throws InvalidDatabaseException Exception for an invalid database.
*/
public <T> Networks<T> networks(Class<T> typeParameterClass) throws
public <T> Networks<T> networks(Class<T> typeParameterClass) throws
InvalidNetworkException, ClosedDatabaseException, InvalidDatabaseException {
return this.networks(false, typeParameterClass);
}
Expand Down
Loading