Skip to content

Commit 36dfa19

Browse files
committed
Checkstyle fixes.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/codec/trunk@1378740 13f79535-47bb-0310-9956-ffa450edef68
1 parent 76c125c commit 36dfa19

3 files changed

Lines changed: 11 additions & 6 deletions

File tree

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,8 @@ public int read(byte b[], int offset, int len) throws IOException {
170170

171171
/**
172172
* Repositions this stream to the position at the time the mark method was last called on this input stream.
173-
* <p>The {@link #reset} method of {@link BaseNCodecInputStream} does nothing except throw an {@link IOException}.</p>
173+
* <p>
174+
* The {@link #reset} method of {@link BaseNCodecInputStream} does nothing except throw an {@link IOException}.
174175
*
175176
* @throws IOException if this method is invoked
176177
* @since 1.7

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

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,14 @@ public class Hex implements BinaryEncoder, BinaryDecoder {
5555
/**
5656
* Used to build output as Hex
5757
*/
58-
private static final char[] DIGITS_LOWER = {'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f'};
58+
private static final char[] DIGITS_LOWER =
59+
{'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f'};
5960

6061
/**
6162
* Used to build output as Hex
6263
*/
63-
private static final char[] DIGITS_UPPER = {'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F'};
64+
private static final char[] DIGITS_UPPER =
65+
{'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F'};
6466

6567
/**
6668
* Converts an array of characters representing hexadecimal values into an array of bytes of those same values. The
@@ -293,7 +295,8 @@ public byte[] encode(byte[] array) {
293295
@Override
294296
public Object encode(Object object) throws EncoderException {
295297
try {
296-
byte[] byteArray = object instanceof String ? ((String) object).getBytes(this.getCharset()) : (byte[]) object;
298+
byte[] byteArray = object instanceof String ?
299+
((String) object).getBytes(this.getCharset()) : (byte[]) object;
297300
return encodeHex(byteArray);
298301
} catch (ClassCastException e) {
299302
throw new EncoderException(e.getMessage(), e);

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,9 @@
2424
import org.apache.commons.codec.Charsets;
2525

2626
/**
27-
* Converts String to and from bytes using the encodings required by the Java specification. These encodings are specified in <a
28-
* href="http://download.oracle.com/javase/6/docs/api/java/nio/charset/Charset.html">Standard charsets</a>
27+
* Converts String to and from bytes using the encodings required by the Java specification. These encodings are
28+
* specified in <a href="http://download.oracle.com/javase/6/docs/api/java/nio/charset/Charset.html">
29+
* Standard charsets</a>.
2930
*
3031
* <p>This class is immutable and thread-safe.</p>
3132
*

0 commit comments

Comments
 (0)