Skip to content

Commit b66d41a

Browse files
committed
Fix Checkstyle issues: Line has trailing spaces.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/codec/trunk@1352268 13f79535-47bb-0310-9956-ffa450edef68
1 parent f5f3790 commit b66d41a

95 files changed

Lines changed: 1298 additions & 1298 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

src/main/java/org/apache/commons/codec/BinaryDecoder.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
* The ASF licenses this file to You under the Apache License, Version 2.0
66
* (the "License"); you may not use this file except in compliance with
77
* the License. You may obtain a copy of the License at
8-
*
8+
*
99
* http://www.apache.org/licenses/LICENSE-2.0
10-
*
10+
*
1111
* Unless required by applicable law or agreed to in writing, software
1212
* distributed under the License is distributed on an "AS IS" BASIS,
1313
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -25,17 +25,17 @@
2525
public interface BinaryDecoder extends Decoder {
2626

2727
/**
28-
* Decodes a byte array and returns the results as a byte array.
28+
* Decodes a byte array and returns the results as a byte array.
2929
*
3030
* @param source A byte array which has been encoded with the
3131
* appropriate encoder
32-
*
32+
*
3333
* @return a byte array that contains decoded content
34-
*
34+
*
3535
* @throws DecoderException A decoder exception is thrown
3636
* if a Decoder encounters a failure condition during
3737
* the decode process.
3838
*/
3939
byte[] decode(byte[] source) throws DecoderException;
40-
}
40+
}
4141

src/main/java/org/apache/commons/codec/BinaryEncoder.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
* The ASF licenses this file to You under the Apache License, Version 2.0
66
* (the "License"); you may not use this file except in compliance with
77
* the License. You may obtain a copy of the License at
8-
*
8+
*
99
* http://www.apache.org/licenses/LICENSE-2.0
10-
*
10+
*
1111
* Unless required by applicable law or agreed to in writing, software
1212
* distributed under the License is distributed on an "AS IS" BASIS,
1313
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -19,23 +19,23 @@
1919

2020
/**
2121
* Defines common encoding methods for byte array encoders.
22-
*
22+
*
2323
* @version $Id$
2424
*/
2525
public interface BinaryEncoder extends Encoder {
26-
26+
2727
/**
2828
* Encodes a byte array and return the encoded data
2929
* as a byte array.
30-
*
30+
*
3131
* @param source Data to be encoded
3232
*
3333
* @return A byte array containing the encoded data
34-
*
34+
*
3535
* @throws EncoderException thrown if the Encoder
3636
* encounters a failure condition during the
3737
* encoding process.
3838
*/
3939
byte[] encode(byte[] source) throws EncoderException;
40-
}
40+
}
4141

src/main/java/org/apache/commons/codec/CharEncoding.java

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
* The ASF licenses this file to You under the Apache License, Version 2.0
66
* (the "License"); you may not use this file except in compliance with
77
* the License. You may obtain a copy of the License at
8-
*
8+
*
99
* http://www.apache.org/licenses/LICENSE-2.0
10-
*
10+
*
1111
* Unless required by applicable law or agreed to in writing, software
1212
* distributed under the License is distributed on an "AS IS" BASIS,
1313
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -19,15 +19,15 @@
1919

2020
/**
2121
* Character encoding names required of every implementation of the Java platform.
22-
*
22+
*
2323
* From the Java documentation <a href="http://download.oracle.com/javase/6/docs/api/java/nio/charset/Charset.html">Standard
2424
* charsets</a>:
2525
* <p>
2626
* <cite>Every implementation of the Java platform is required to support the following character encodings. Consult the
2727
* release documentation for your implementation to see if any other encodings are supported. Consult the release
2828
* documentation for your implementation to see if any other encodings are supported. </cite>
2929
* </p>
30-
*
30+
*
3131
* <ul>
3232
* <li><code>US-ASCII</code><br/>
3333
* Seven-bit ASCII, a.k.a. ISO646-US, a.k.a. the Basic Latin block of the Unicode character set.</li>
@@ -43,12 +43,12 @@
4343
* Sixteen-bit Unicode Transformation Format, byte order specified by a mandatory initial byte-order mark (either order
4444
* accepted on input, big-endian used on output.)</li>
4545
* </ul>
46-
*
46+
*
4747
* This perhaps would best belong in the [lang] project. Even if a similar interface is defined in [lang], it is not
4848
* foreseen that [codec] would be made to depend on [lang].
49-
*
49+
*
5050
* <p>This class is immutable and thread-safe.</p>
51-
*
51+
*
5252
* @see <a href="http://download.oracle.com/javase/6/docs/api/java/nio/charset/Charset.html">Standard charsets</a>
5353
* @since 1.4
5454
* @version $Id$
@@ -59,7 +59,7 @@ public class CharEncoding {
5959
* <p>
6060
* Every implementation of the Java platform is required to support this character encoding.
6161
* </p>
62-
*
62+
*
6363
* @see <a href="http://download.oracle.com/javase/6/docs/api/java/nio/charset/Charset.html">Standard charsets</a>
6464
*/
6565
public static final String ISO_8859_1 = "ISO-8859-1";
@@ -71,7 +71,7 @@ public class CharEncoding {
7171
* <p>
7272
* Every implementation of the Java platform is required to support this character encoding.
7373
* </p>
74-
*
74+
*
7575
* @see <a href="http://download.oracle.com/javase/6/docs/api/java/nio/charset/Charset.html">Standard charsets</a>
7676
*/
7777
public static final String US_ASCII = "US-ASCII";
@@ -84,7 +84,7 @@ public class CharEncoding {
8484
* <p>
8585
* Every implementation of the Java platform is required to support this character encoding.
8686
* </p>
87-
*
87+
*
8888
* @see <a href="http://download.oracle.com/javase/6/docs/api/java/nio/charset/Charset.html">Standard charsets</a>
8989
*/
9090
public static final String UTF_16 = "UTF-16";
@@ -96,7 +96,7 @@ public class CharEncoding {
9696
* <p>
9797
* Every implementation of the Java platform is required to support this character encoding.
9898
* </p>
99-
*
99+
*
100100
* @see <a href="http://download.oracle.com/javase/6/docs/api/java/nio/charset/Charset.html">Standard charsets</a>
101101
*/
102102
public static final String UTF_16BE = "UTF-16BE";
@@ -108,7 +108,7 @@ public class CharEncoding {
108108
* <p>
109109
* Every implementation of the Java platform is required to support this character encoding.
110110
* </p>
111-
*
111+
*
112112
* @see <a href="http://download.oracle.com/javase/6/docs/api/java/nio/charset/Charset.html">Standard charsets</a>
113113
*/
114114
public static final String UTF_16LE = "UTF-16LE";
@@ -120,7 +120,7 @@ public class CharEncoding {
120120
* <p>
121121
* Every implementation of the Java platform is required to support this character encoding.
122122
* </p>
123-
*
123+
*
124124
* @see <a href="http://download.oracle.com/javase/6/docs/api/java/nio/charset/Charset.html">Standard charsets</a>
125125
*/
126126
public static final String UTF_8 = "UTF-8";

src/main/java/org/apache/commons/codec/Charsets.java

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
* The ASF licenses this file to You under the Apache License, Version 2.0
66
* (the "License"); you may not use this file except in compliance with
77
* the License. You may obtain a copy of the License at
8-
*
8+
*
99
* http://www.apache.org/licenses/LICENSE-2.0
10-
*
10+
*
1111
* Unless required by applicable law or agreed to in writing, software
1212
* distributed under the License is distributed on an "AS IS" BASIS,
1313
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -21,15 +21,15 @@
2121

2222
/**
2323
* Charsets required of every implementation of the Java platform.
24-
*
24+
*
2525
* From the Java documentation <a href="http://docs.oracle.com/javase/6/docs/api/java/nio/charset/Charset.html">Standard
2626
* charsets</a>:
2727
* <p>
2828
* <cite>Every implementation of the Java platform is required to support the following character encodings. Consult the
2929
* release documentation for your implementation to see if any other encodings are supported. Consult the release
3030
* documentation for your implementation to see if any other encodings are supported. </cite>
3131
* </p>
32-
*
32+
*
3333
* <ul>
3434
* <li><code>US-ASCII</code><br/>
3535
* Seven-bit ASCII, a.k.a. ISO646-US, a.k.a. the Basic Latin block of the Unicode character set.</li>
@@ -45,26 +45,26 @@
4545
* Sixteen-bit Unicode Transformation Format, byte order specified by a mandatory initial byte-order mark (either order
4646
* accepted on input, big-endian used on output.)</li>
4747
* </ul>
48-
*
48+
*
4949
* This perhaps would best belong in the Commons Lang project. Even if a similar class is defined in Commons Lang, it is
5050
* not foreseen that Commons Codec would be made to depend on Commons Lang.
51-
*
51+
*
5252
* <p>This class is immutable and thread-safe.</p>
53-
*
53+
*
5454
* @see <a href="http://docs.oracle.com/javase/6/docs/api/java/nio/charset/Charset.html">Standard charsets</a>
5555
* @since 1.7
5656
* @version $Id: CharEncoding.java 1173287 2011-09-20 18:16:19Z ggregory $
5757
*/
5858
public class Charsets {
59-
59+
6060
//
6161
// This class should only contain Charset instances for required encodings. This guarantees that it will load correctly and
6262
// without delay on all Java platforms.
6363
//
64-
64+
6565
/**
66-
* Returns the given Charset or the default Charset if the given Charset is null.
67-
*
66+
* Returns the given Charset or the default Charset if the given Charset is null.
67+
*
6868
* @param charset
6969
* A charset or null.
7070
* @return the given Charset or the default Charset if the given Charset is null
@@ -75,7 +75,7 @@ public static Charset toCharset(Charset charset) {
7575

7676
/**
7777
* Returns a Charset for the named charset. If the name is null, return the default Charset.
78-
*
78+
*
7979
* @param charset
8080
* The name of the requested charset, may be null.
8181
* @return a Charset for the named charset
@@ -91,7 +91,7 @@ public static Charset toCharset(String charset) {
9191
* <p>
9292
* Every implementation of the Java platform is required to support this character encoding.
9393
* </p>
94-
*
94+
*
9595
* @see <a href="http://docs.oracle.com/javase/6/docs/api/java/nio/charset/Charset.html">Standard charsets</a>
9696
*/
9797
public static final Charset ISO_8859_1 = Charset.forName(CharEncoding.ISO_8859_1);
@@ -103,7 +103,7 @@ public static Charset toCharset(String charset) {
103103
* <p>
104104
* Every implementation of the Java platform is required to support this character encoding.
105105
* </p>
106-
*
106+
*
107107
* @see <a href="http://docs.oracle.com/javase/6/docs/api/java/nio/charset/Charset.html">Standard charsets</a>
108108
*/
109109
public static final Charset US_ASCII = Charset.forName(CharEncoding.US_ASCII);
@@ -116,7 +116,7 @@ public static Charset toCharset(String charset) {
116116
* <p>
117117
* Every implementation of the Java platform is required to support this character encoding.
118118
* </p>
119-
*
119+
*
120120
* @see <a href="http://docs.oracle.com/javase/6/docs/api/java/nio/charset/Charset.html">Standard charsets</a>
121121
*/
122122
public static final Charset UTF_16 = Charset.forName(CharEncoding.UTF_16);
@@ -128,7 +128,7 @@ public static Charset toCharset(String charset) {
128128
* <p>
129129
* Every implementation of the Java platform is required to support this character encoding.
130130
* </p>
131-
*
131+
*
132132
* @see <a href="http://docs.oracle.com/javase/6/docs/api/java/nio/charset/Charset.html">Standard charsets</a>
133133
*/
134134
public static final Charset UTF_16BE = Charset.forName(CharEncoding.UTF_16BE);
@@ -140,7 +140,7 @@ public static Charset toCharset(String charset) {
140140
* <p>
141141
* Every implementation of the Java platform is required to support this character encoding.
142142
* </p>
143-
*
143+
*
144144
* @see <a href="http://docs.oracle.com/javase/6/docs/api/java/nio/charset/Charset.html">Standard charsets</a>
145145
*/
146146
public static final Charset UTF_16LE = Charset.forName(CharEncoding.UTF_16LE);
@@ -152,7 +152,7 @@ public static Charset toCharset(String charset) {
152152
* <p>
153153
* Every implementation of the Java platform is required to support this character encoding.
154154
* </p>
155-
*
155+
*
156156
* @see <a href="http://docs.oracle.com/javase/6/docs/api/java/nio/charset/Charset.html">Standard charsets</a>
157157
*/
158158
public static final Charset UTF_8 = Charset.forName(CharEncoding.UTF_8);

src/main/java/org/apache/commons/codec/Decoder.java

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
* The ASF licenses this file to You under the Apache License, Version 2.0
66
* (the "License"); you may not use this file except in compliance with
77
* the License. You may obtain a copy of the License at
8-
*
8+
*
99
* http://www.apache.org/licenses/LICENSE-2.0
10-
*
10+
*
1111
* Unless required by applicable law or agreed to in writing, software
1212
* distributed under the License is distributed on an "AS IS" BASIS,
1313
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -21,12 +21,12 @@
2121
* <p>Provides the highest level of abstraction for Decoders.
2222
* This is the sister interface of {@link Encoder}. All
2323
* Decoders implement this common generic interface.</p>
24-
*
25-
* <p>Allows a user to pass a generic Object to any Decoder
24+
*
25+
* <p>Allows a user to pass a generic Object to any Decoder
2626
* implementation in the codec package.</p>
27-
*
27+
*
2828
* <p>One of the two interfaces at the center of the codec package.</p>
29-
*
29+
*
3030
* @version $Id$
3131
*/
3232
public interface Decoder {
@@ -38,17 +38,17 @@ public interface Decoder {
3838
* to the specific type expected by a particular Decoder
3939
* implementation. If a {@link ClassCastException} occurs
4040
* this decode method will throw a DecoderException.
41-
*
41+
*
4242
* @param source the object to decode
43-
*
43+
*
4444
* @return a 'decoded" object
45-
*
45+
*
4646
* @throws DecoderException a decoder exception can
4747
* be thrown for any number of reasons. Some good
4848
* candidates are that the parameter passed to this
4949
* method is null, a param cannot be cast to the
5050
* appropriate type for a specific encoder.
5151
*/
5252
Object decode(Object source) throws DecoderException;
53-
}
53+
}
5454

0 commit comments

Comments
 (0)