Skip to content

Commit 7f76907

Browse files
committed
Check rule for indentation on docs
1 parent 11dc997 commit 7f76907

File tree

4 files changed

+9
-8
lines changed

4 files changed

+9
-8
lines changed

checkstyle.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@
314314
</module>
315315
<module name="NonEmptyAtclauseDescription"/>
316316
<module name="InvalidJavadocPosition"/>
317-
<!-- <module name="JavadocTagContinuationIndentation"/> -->
317+
<module name="JavadocTagContinuationIndentation"/>
318318
<!-- <module name="SummaryJavadoc">
319319
<property name="forbiddenSummaryFragments"
320320
value="^@return the *|^This method returns |^A [{]@code [a-zA-Z0-9]+[}]( is a )"/>

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

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,17 +25,18 @@ public DatabaseRecord(T data, InetAddress ipAddress, int prefixLength) {
2525
}
2626

2727
/**
28-
* @return the data for the record in the database. The record will be
29-
* <code>null</code> if there was no data for the address in the database.
28+
* @return the data for the record in the database. The record will be
29+
* <code>null</code> if there was no data for the address in the
30+
* database.
3031
*/
3132
public T getData() {
3233
return data;
3334
}
3435

3536
/**
3637
* @return the network associated with the record in the database. This is
37-
* the largest network where all of the IPs in the network have the same
38-
* data.
38+
* the largest network where all of the IPs in the network have the same
39+
* data.
3940
*/
4041
public Network getNetwork() {
4142
return network;

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,15 +54,15 @@ public InetAddress getNetworkAddress() {
5454

5555
/**
5656
* @return The prefix length is the number of leading 1 bits in the subnet
57-
* mask. Sometimes also known as netmask length.
57+
* mask. Sometimes also known as netmask length.
5858
*/
5959
public int getPrefixLength() {
6060
return prefixLength;
6161
}
6262

6363
/**
6464
* @return A string representation of the network in CIDR notation, e.g.,
65-
* <code>1.2.3.0/24</code> or <code>2001::/8</code>.
65+
* <code>1.2.3.0/24</code> or <code>2001::/8</code>.
6666
*/
6767
public String toString() {
6868
return getNetworkAddress().getHostAddress() + "/" + prefixLength;

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ int getIpv4Start() {
163163
* @param ipAddress the IP address to look up.
164164
* @param cls the class of object to populate.
165165
* @return the record for the IP address. If there is no data for the
166-
* address, the non-null {@link DatabaseRecord} will still be returned.
166+
* address, the non-null {@link DatabaseRecord} will still be returned.
167167
* @throws IOException if a file I/O error occurs.
168168
*/
169169
public <T> DatabaseRecord<T> getRecord(InetAddress ipAddress, Class<T> cls)

0 commit comments

Comments
 (0)