Skip to content

Commit 126f904

Browse files
committed
Remove unused imports. Use final.
1 parent 3c21223 commit 126f904

8 files changed

Lines changed: 2 additions & 10 deletions

File tree

src/main/java/org/apache/commons/codec/binary/BaseNCodec.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
import org.apache.commons.codec.BinaryEncoder;
2424
import org.apache.commons.codec.DecoderException;
2525
import org.apache.commons.codec.EncoderException;
26-
import org.apache.commons.codec.binary.BaseNCodec.Context;
2726

2827
/**
2928
* Abstract superclass for Base-N encoders and decoders.

src/main/java/org/apache/commons/codec/binary/Hex.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
import org.apache.commons.codec.BinaryDecoder;
2525
import org.apache.commons.codec.BinaryEncoder;
2626
import org.apache.commons.codec.CharEncoding;
27-
import org.apache.commons.codec.Charsets;
2827
import org.apache.commons.codec.DecoderException;
2928
import org.apache.commons.codec.EncoderException;
3029

src/main/java/org/apache/commons/codec/binary/StringUtils.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
import java.nio.charset.StandardCharsets;
2424

2525
import org.apache.commons.codec.CharEncoding;
26-
import org.apache.commons.codec.Charsets;
2726

2827
/**
2928
* Converts String to and from bytes using the encodings required by the Java specification. These encodings are

src/main/java/org/apache/commons/codec/digest/MurmurHash3.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,6 @@
1717

1818
package org.apache.commons.codec.digest;
1919

20-
import java.nio.charset.Charset;
21-
import java.nio.charset.StandardCharsets;
22-
2320
import org.apache.commons.codec.binary.StringUtils;
2421

2522
/**

src/main/java/org/apache/commons/codec/net/QuotedPrintableCodec.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727

2828
import org.apache.commons.codec.BinaryDecoder;
2929
import org.apache.commons.codec.BinaryEncoder;
30-
import org.apache.commons.codec.Charsets;
3130
import org.apache.commons.codec.DecoderException;
3231
import org.apache.commons.codec.EncoderException;
3332
import org.apache.commons.codec.StringDecoder;

src/test/java/org/apache/commons/codec/CharsetsTest.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
package org.apache.commons.codec;
1919

2020
import java.nio.charset.Charset;
21-
import java.nio.charset.StandardCharsets;
2221

2322
import org.junit.Assert;
2423
import org.junit.Test;

src/test/java/org/apache/commons/codec/digest/MurmurHash3Test.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -949,7 +949,7 @@ public void testIncrementalHashWithUnprocessedBytesAndHugeLengthArray() {
949949
byte[] bytes = null;
950950
try {
951951
bytes = new byte[hugeLength];
952-
} catch (OutOfMemoryError ignore) {
952+
} catch (final OutOfMemoryError ignore) {
953953
// Some VMs cannot allocate an array this large.
954954
// Some test environments may not have enough available memory for this.
955955
}

src/test/java/org/apache/commons/codec/digest/XXHash32OverflowTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public void testIncrementalHashWithUnprocessedBytesAndHugeLengthArray() {
4444
byte[] bytes = null;
4545
try {
4646
bytes = new byte[hugeLength];
47-
} catch (OutOfMemoryError ignore) {
47+
} catch (final OutOfMemoryError ignore) {
4848
// Some VMs cannot allocate an array this large.
4949
// Some test environments may not have enough available memory for this.
5050
}

0 commit comments

Comments
 (0)