Skip to content

Commit 6e59bd2

Browse files
committed
Automatically reformat code
1 parent dc479c5 commit 6e59bd2

19 files changed

+508
-476
lines changed

CHANGELOG.md

+2-3
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ CHANGELOG
1111
------------------
1212

1313
* Messages for `DeserializationException` have been improved, and the cause
14-
is included, if any. Moreover, the message provides detail about the involved
15-
types, if the exception is caused by an `IllegalArgumentException`.
14+
is included, if any. Moreover, the message provides detail about the involved
15+
types, if the exception is caused by an `IllegalArgumentException`.
1616

1717
2.0.0 (2020-10-13)
1818
------------------
@@ -107,7 +107,6 @@ CHANGELOG
107107
* Several optimizations have been made to reduce allocations when decoding a
108108
record. Pull requests by Viktor Szathmáry. GitHub #16 & #17.
109109

110-
111110
1.0.0 (2014-09-29)
112111
------------------
113112

checkstyle.xml

+6-6
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
<!-- https://checkstyle.org/config_filters.html#SuppressionFilter -->
3333
<module name="SuppressionFilter">
3434
<property name="file" value="${org.checkstyle.google.suppressionfilter.config}"
35-
default="checkstyle-suppressions.xml" />
35+
default="checkstyle-suppressions.xml"/>
3636
<property name="optional" value="true"/>
3737
</module>
3838

@@ -362,14 +362,14 @@
362362
<!-- https://checkstyle.org/config_filters.html#SuppressionXpathFilter -->
363363
<module name="SuppressionXpathFilter">
364364
<property name="file" value="${org.checkstyle.google.suppressionxpathfilter.config}"
365-
default="checkstyle-xpath-suppressions.xml" />
365+
default="checkstyle-xpath-suppressions.xml"/>
366366
<property name="optional" value="true"/>
367367
</module>
368-
<module name="SuppressWarningsHolder" />
368+
<module name="SuppressWarningsHolder"/>
369369
<module name="SuppressionCommentFilter">
370-
<property name="offCommentFormat" value="CHECKSTYLE.OFF\: ([\w\|]+)" />
371-
<property name="onCommentFormat" value="CHECKSTYLE.ON\: ([\w\|]+)" />
372-
<property name="checkFormat" value="$1" />
370+
<property name="offCommentFormat" value="CHECKSTYLE.OFF\: ([\w\|]+)"/>
371+
<property name="onCommentFormat" value="CHECKSTYLE.ON\: ([\w\|]+)"/>
372+
<property name="checkFormat" value="$1"/>
373373
</module>
374374
<module name="SuppressWithNearbyCommentFilter">
375375
<property name="commentFormat" value="CHECKSTYLE.SUPPRESS\: ([\w\|]+)"/>

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

+5-6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package com.maxmind.db;
22

3+
import com.maxmind.db.Reader.FileMode;
34
import java.io.ByteArrayOutputStream;
45
import java.io.File;
56
import java.io.IOException;
@@ -9,23 +10,21 @@
910
import java.nio.channels.FileChannel;
1011
import java.nio.channels.FileChannel.MapMode;
1112

12-
import com.maxmind.db.Reader.FileMode;
13-
1413
final class BufferHolder {
1514
// DO NOT PASS OUTSIDE THIS CLASS. Doing so will remove thread safety.
1615
private final ByteBuffer buffer;
1716

1817
BufferHolder(File database, FileMode mode) throws IOException {
1918
try (
20-
final RandomAccessFile file = new RandomAccessFile(database, "r");
21-
final FileChannel channel = file.getChannel()
19+
final RandomAccessFile file = new RandomAccessFile(database, "r");
20+
final FileChannel channel = file.getChannel()
2221
) {
2322
if (mode == FileMode.MEMORY) {
2423
final ByteBuffer buf = ByteBuffer.wrap(new byte[(int) channel.size()]);
2524
if (channel.read(buf) != buf.capacity()) {
2625
throw new IOException("Unable to read "
27-
+ database.getName()
28-
+ " into memory. Unexpected end of stream.");
26+
+ database.getName()
27+
+ " into memory. Unexpected end of stream.");
2928
}
3029
this.buffer = buf.asReadOnlyBuffer();
3130
} else {

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

+4-4
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ final class CachedConstructor<T> {
1010
private final Map<String, Integer> parameterIndexes;
1111

1212
CachedConstructor(
13-
Constructor<T> constructor,
14-
Class<?>[] parameterTypes,
15-
java.lang.reflect.Type[] parameterGenericTypes,
16-
Map<String, Integer> parameterIndexes
13+
Constructor<T> constructor,
14+
Class<?>[] parameterTypes,
15+
java.lang.reflect.Type[] parameterGenericTypes,
16+
Map<String, Integer> parameterIndexes
1717
) {
1818
this.constructor = constructor;
1919
this.parameterTypes = parameterTypes;

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package com.maxmind.db;
22

33
public final class DecodedValue {
4-
final Object value;
4+
final Object value;
55

66
DecodedValue(Object value) {
77
this.value = value;

0 commit comments

Comments
 (0)