Skip to content

Commit ae70bfc

Browse files
committed
Checkstyle - trailing spaces
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/codec/trunk@1744727 13f79535-47bb-0310-9956-ffa450edef68
1 parent 7817bfd commit ae70bfc

21 files changed

Lines changed: 1140 additions & 1140 deletions

build.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ limitations under the License.
5555
<target name="compile" depends="static" description="Compile shareable components">
5656
<javac srcdir="${source.home}" destdir="${build.home}/classes"
5757
source="${compile.source}" target="${compile.target}"
58-
debug="${compile.debug}" deprecation="${compile.deprecation}" optimize="${compile.optimize}"
58+
debug="${compile.debug}" deprecation="${compile.deprecation}" optimize="${compile.optimize}"
5959
includeantruntime="${compile.includeantruntime}"
6060
encoding="${compile.encoding}">
6161
<classpath refid="compile.classpath"/>
@@ -191,7 +191,7 @@ limitations under the License.
191191
<target name="compile.tests" depends="compile" description="Compile unit test cases">
192192
<javac srcdir="${test.home}" destdir="${build.home}/tests"
193193
source="${compile.source}" target="${compile.target}"
194-
debug="${compile.debug}" deprecation="${compile.deprecation}" optimize="${compile.optimize}"
194+
debug="${compile.debug}" deprecation="${compile.deprecation}" optimize="${compile.optimize}"
195195
includeantruntime="${compile.includeantruntime}"
196196
encoding="${compile.encoding}">
197197
<classpath refid="test.classpath"/>

pom.xml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ limitations under the License.
1717
-->
1818
<!--
1919
To produce reports, use the reporting profile, for example: mvn -Preporting clean site
20-
You may need to use the -U option to update your environment if you get an error.
20+
You may need to use the -U option to update your environment if you get an error.
2121
-->
2222
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2323
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
@@ -41,7 +41,7 @@ limitations under the License.
4141
</description>
4242
<prerequisites>
4343
<maven>3.0.0</maven>
44-
</prerequisites>
44+
</prerequisites>
4545
<url>http://commons.apache.org/proper/commons-codec/</url>
4646
<issueManagement>
4747
<system>jira</system>
@@ -263,7 +263,7 @@ limitations under the License.
263263
</excludes>
264264
</configuration>
265265
</plugin>
266-
266+
267267
<!-- Exclude cli from binary jar -->
268268
<plugin>
269269
<groupId>org.apache.maven.plugins</groupId>
@@ -274,7 +274,7 @@ limitations under the License.
274274
</excludes>
275275
</configuration>
276276
</plugin>
277-
277+
278278
<!-- Create CLI jar -->
279279
<plugin>
280280
<artifactId>maven-antrun-plugin</artifactId>
@@ -375,8 +375,8 @@ limitations under the License.
375375
<plugin>
376376
<groupId>org.apache.maven.plugins</groupId>
377377
<artifactId>maven-checkstyle-plugin</artifactId>
378-
<!-- Use 2.9.1 instead of 2.10-2.15; which seems to scan the 'target'
379-
dir and wants license headers in .properties to be the header for
378+
<!-- Use 2.9.1 instead of 2.10-2.15; which seems to scan the 'target'
379+
dir and wants license headers in .properties to be the header for
380380
Java files. -->
381381
<version>2.9.1</version>
382382
<configuration>

src/changes/changes.xml

Lines changed: 43 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -44,56 +44,56 @@ The <action> type attribute can be add,update,fix,remove.
4444
<body>
4545
<release version="1.11" date="DD MM 2015" description="Feature and fix release.">
4646
<!-- The first attribute below should be the issue id; makes it easier to navigate in the IDE outline -->
47-
48-
<action issue="CODEC-171" dev="sebb" type="add" due-to="Brett Okken">Add support for CRC32-C</action>
49-
<action issue="CODEC-221" dev="sebb" type="update">HmacUtils.updateHmac calls reset() unnecessarily</action>
50-
<action issue="CODEC-200" dev="sebb" type="fix" due-to="Luciano Vernaschi">Base32.HEX_DECODE_TABLE contains the wrong value 32</action>
51-
<action dev="ggregory" type="fix" issue="CODEC-207" due-to="Gary Gregory">Charsets Javadoc breaks build when using Java 8</action>
52-
<action dev="ggregory" type="fix" issue="CODEC-199" due-to="Yossi Tamari">Bug in HW rule in Soundex</action>
53-
<action dev="ggregory" type="fix" issue="CODEC-209" due-to="Gary Gregory">Javadoc for SHA-224 DigestUtils methods should mention Java 1.8.0 restriction instead of 1.4.0.</action>
54-
<action dev="ggregory" type="fix" issue="CODEC-219" due-to="Gary Gregory, Sebb">Don't deprecate Charsets Charset constants in favor of Java 7's java.nio.charset.StandardCharsets</action>
55-
<action dev="ggregory" type="add" issue="CODEC-218" due-to="Gary Gregory">Refactor HmacUtils methods into the HmacAlgorithms enum</action>
56-
<action dev="ggregory" type="add" issue="CODEC-217" due-to="Gary Gregory">Add HmacAlgorithms.HMAC_SHA_224 (Java 8 only)</action>
57-
<action dev="ggregory" type="add" issue="CODEC-213" due-to="Gary Gregory">Support JEP 287: SHA-3 Hash Algorithms</action>
58-
<action dev="ggregory" type="add" issue="CODEC-212" due-to="Gary Gregory">Create a minimal Digest command line utility: org.apache.commons.codec.digest.Digest</action>
59-
<action dev="ggregory" type="add" issue="CODEC-210" due-to="Gary Gregory">Add DigestUtils.getDigest(String, MessageDigest)</action>
60-
<action dev="ggregory" type="add" issue="CODEC-208" due-to="Gary Gregory">Make some DigestUtils APIs public</action>
61-
<action dev="ggregory" type="add" issue="CODEC-206" due-to="Gary Gregory">Add java.io.File APIs to MessageDigestAlgorithm</action>
62-
<action dev="ggregory" type="add" issue="CODEC-183" due-to="Steven Wurster">BaseNCodecOutputStream only supports writing EOF on close()</action>
63-
<action dev="ggregory" type="add" issue="CODEC-195" due-to="Gary Gregory">Support SHA-224 in DigestUtils on Java 8</action>
64-
<action dev="ggregory" type="add" issue="CODEC-194" due-to="Gary Gregory">Support java.nio.ByteBuffer in org.apache.commons.codec.binary.Hex</action>
65-
<action dev="ggregory" type="add" issue="CODEC-193" due-to="Michael Donaghy">Support java.nio.ByteBuffer in DigestUtils</action>
47+
48+
<action issue="CODEC-171" dev="sebb" type="add" due-to="Brett Okken">Add support for CRC32-C</action>
49+
<action issue="CODEC-221" dev="sebb" type="update">HmacUtils.updateHmac calls reset() unnecessarily</action>
50+
<action issue="CODEC-200" dev="sebb" type="fix" due-to="Luciano Vernaschi">Base32.HEX_DECODE_TABLE contains the wrong value 32</action>
51+
<action dev="ggregory" type="fix" issue="CODEC-207" due-to="Gary Gregory">Charsets Javadoc breaks build when using Java 8</action>
52+
<action dev="ggregory" type="fix" issue="CODEC-199" due-to="Yossi Tamari">Bug in HW rule in Soundex</action>
53+
<action dev="ggregory" type="fix" issue="CODEC-209" due-to="Gary Gregory">Javadoc for SHA-224 DigestUtils methods should mention Java 1.8.0 restriction instead of 1.4.0.</action>
54+
<action dev="ggregory" type="fix" issue="CODEC-219" due-to="Gary Gregory, Sebb">Don't deprecate Charsets Charset constants in favor of Java 7's java.nio.charset.StandardCharsets</action>
55+
<action dev="ggregory" type="add" issue="CODEC-218" due-to="Gary Gregory">Refactor HmacUtils methods into the HmacAlgorithms enum</action>
56+
<action dev="ggregory" type="add" issue="CODEC-217" due-to="Gary Gregory">Add HmacAlgorithms.HMAC_SHA_224 (Java 8 only)</action>
57+
<action dev="ggregory" type="add" issue="CODEC-213" due-to="Gary Gregory">Support JEP 287: SHA-3 Hash Algorithms</action>
58+
<action dev="ggregory" type="add" issue="CODEC-212" due-to="Gary Gregory">Create a minimal Digest command line utility: org.apache.commons.codec.digest.Digest</action>
59+
<action dev="ggregory" type="add" issue="CODEC-210" due-to="Gary Gregory">Add DigestUtils.getDigest(String, MessageDigest)</action>
60+
<action dev="ggregory" type="add" issue="CODEC-208" due-to="Gary Gregory">Make some DigestUtils APIs public</action>
61+
<action dev="ggregory" type="add" issue="CODEC-206" due-to="Gary Gregory">Add java.io.File APIs to MessageDigestAlgorithm</action>
62+
<action dev="ggregory" type="add" issue="CODEC-183" due-to="Steven Wurster">BaseNCodecOutputStream only supports writing EOF on close()</action>
63+
<action dev="ggregory" type="add" issue="CODEC-195" due-to="Gary Gregory">Support SHA-224 in DigestUtils on Java 8</action>
64+
<action dev="ggregory" type="add" issue="CODEC-194" due-to="Gary Gregory">Support java.nio.ByteBuffer in org.apache.commons.codec.binary.Hex</action>
65+
<action dev="ggregory" type="add" issue="CODEC-193" due-to="Michael Donaghy">Support java.nio.ByteBuffer in DigestUtils</action>
6666
<action dev="ggregory" type="add" issue="CODEC-202" due-to="Oleg Kalnichevski">Add BaseNCodec.encode(byte[], int, int) input with offset and length parameters for Base64 and Base32.</action>
6767
<action dev="ggregory" type="add" issue="CODEC-203" due-to="Gary Gregory">Add convenience method decodeHex(String).</action>
6868
<action dev="ggregory" type="add" issue="CODEC-205" due-to="Gary Gregory">Add faster CRC32 implementation.</action>
69-
</release>
69+
</release>
7070
<release version="1.10" date="5 November 2014" description="Feature and fix release.">
71-
<action dev="ggregory" type="add" issue="CODEC-192" due-to="Thomas Neidhart">Add Daitch-Mokotoff Soundex</action>
72-
<action dev="ggregory" type="add" issue="CODEC-121" due-to="Thomas Neidhart, Java John">QuotedPrintableCodec does not support soft line break per the 'quoted-printable' example on Wikipedia</action>
73-
<action dev="tn" type="fix" issue="CODEC-185" due-to="Sean Busbey">Added clarification to Javadoc of Base64 concerning the use of the urlSafe parameter</action>
74-
<action dev="tn" type="fix" issue="CODEC-191" due-to="Igor Savin">Added clarification to the Javadoc of Base[32|64]OutputStream that it is mandatory to call close()</action>
75-
<action dev="ggregory" type="fix" issue="CODEC-188" due-to="Hendrik Saly">Add support for HMAC Message Authentication Code (MAC) digests</action>
76-
<action dev="ggregory" type="fix" issue="CODEC-187" due-to="Michael Tobias, Thomas Neidhart">Beider Morse Phonetic Matching producing incorrect tokens</action>
77-
<action dev="ggregory" type="fix" issue="CODEC-184" due-to="Cyrille Artho">NullPointerException in DoubleMetaPhone.isDoubleMetaphoneEqual when using empty strings</action>
78-
<action dev="ggregory" type="add" issue="CODEC-181" due-to="Ivan Martinez-Ortiz">Make possible to provide padding byte to BaseNCodec in constructor</action>
79-
<action dev="ggregory" type="fix" issue="CODEC-180" due-to="Ville Skyttä">Fix Javadoc 1.8.0 errors</action>
80-
<action dev="ggregory" type="update" issue="CODEC-178">Deprecate Charsets Charset constants in favor of Java 7's java.nio.charset.StandardCharsets</action>
81-
<action dev="ggregory" type="fix" issue="CODEC-189">Fix Java 8 build Javadoc errors</action>
82-
<action dev="ggregory" type="update" issue="CODEC-190">Update from commons-parent 34 to 35</action>
71+
<action dev="ggregory" type="add" issue="CODEC-192" due-to="Thomas Neidhart">Add Daitch-Mokotoff Soundex</action>
72+
<action dev="ggregory" type="add" issue="CODEC-121" due-to="Thomas Neidhart, Java John">QuotedPrintableCodec does not support soft line break per the 'quoted-printable' example on Wikipedia</action>
73+
<action dev="tn" type="fix" issue="CODEC-185" due-to="Sean Busbey">Added clarification to Javadoc of Base64 concerning the use of the urlSafe parameter</action>
74+
<action dev="tn" type="fix" issue="CODEC-191" due-to="Igor Savin">Added clarification to the Javadoc of Base[32|64]OutputStream that it is mandatory to call close()</action>
75+
<action dev="ggregory" type="fix" issue="CODEC-188" due-to="Hendrik Saly">Add support for HMAC Message Authentication Code (MAC) digests</action>
76+
<action dev="ggregory" type="fix" issue="CODEC-187" due-to="Michael Tobias, Thomas Neidhart">Beider Morse Phonetic Matching producing incorrect tokens</action>
77+
<action dev="ggregory" type="fix" issue="CODEC-184" due-to="Cyrille Artho">NullPointerException in DoubleMetaPhone.isDoubleMetaphoneEqual when using empty strings</action>
78+
<action dev="ggregory" type="add" issue="CODEC-181" due-to="Ivan Martinez-Ortiz">Make possible to provide padding byte to BaseNCodec in constructor</action>
79+
<action dev="ggregory" type="fix" issue="CODEC-180" due-to="Ville Skyttä">Fix Javadoc 1.8.0 errors</action>
80+
<action dev="ggregory" type="update" issue="CODEC-178">Deprecate Charsets Charset constants in favor of Java 7's java.nio.charset.StandardCharsets</action>
81+
<action dev="ggregory" type="fix" issue="CODEC-189">Fix Java 8 build Javadoc errors</action>
82+
<action dev="ggregory" type="update" issue="CODEC-190">Update from commons-parent 34 to 35</action>
8383
</release>
84-
<release version="1.9" date="20 December 2013" description="Feature and fix release.">
85-
<action dev="ggregory" type="update" issue="CODEC-174" due-to="Thomas Champagne">Improve performance of Beider Morse encoder</action>
86-
<action dev="ggregory" type="fix" issue="CODEC-175">Beider Morse does not close Scanners used to read config files</action>
87-
<action dev="sebb" type="fix" issue="CODEC-172" due-to="Matt Bishop">Base32 decode table has spurious value</action>
88-
<action dev="ggregory" type="fix" issue="CODEC-170" due-to="Ron Wheeler, Henri Yandell">Link broken in Metaphone Javadoc</action>
89-
<action dev="ggregory" type="fix" issue="CODEC-176" due-to="Ville Skyttä">Spelling fixes in Javadoc and comments</action>
84+
<release version="1.9" date="20 December 2013" description="Feature and fix release.">
85+
<action dev="ggregory" type="update" issue="CODEC-174" due-to="Thomas Champagne">Improve performance of Beider Morse encoder</action>
86+
<action dev="ggregory" type="fix" issue="CODEC-175">Beider Morse does not close Scanners used to read config files</action>
87+
<action dev="sebb" type="fix" issue="CODEC-172" due-to="Matt Bishop">Base32 decode table has spurious value</action>
88+
<action dev="ggregory" type="fix" issue="CODEC-170" due-to="Ron Wheeler, Henri Yandell">Link broken in Metaphone Javadoc</action>
89+
<action dev="ggregory" type="fix" issue="CODEC-176" due-to="Ville Skyttä">Spelling fixes in Javadoc and comments</action>
9090
</release>
9191
<release version="1.8" date="19 April 2013" description="Feature and fix release. Requires a minimum of Java 1.6.">
92-
<action dev="ggregory" type="add" issue="CODEC-168" due-to="Daniel Cassidy">Add DigestUtils.updateDigest(MessageDigest, InputStream).</action>
93-
<action dev="julius" type="add" issue="CODEC-167">Add JUnit to test our decode with pad character in the middle.</action>
94-
<action dev="ggregory" type="add" issue="CODEC-161" due-to="crice">Add Match Rating Approach (MRA) phonetic algorithm encoder.</action>
95-
<action dev="ggregory" type="fix" issue="CODEC-163" due-to="leo141">ColognePhonetic encoder unnecessarily creates many char arrays on every loop run.</action>
96-
<action dev="sebb" type="fix" issue="CODEC-160">Base64.encodeBase64URLSafeString doesn't add padding characters at the end.</action>
92+
<action dev="ggregory" type="add" issue="CODEC-168" due-to="Daniel Cassidy">Add DigestUtils.updateDigest(MessageDigest, InputStream).</action>
93+
<action dev="julius" type="add" issue="CODEC-167">Add JUnit to test our decode with pad character in the middle.</action>
94+
<action dev="ggregory" type="add" issue="CODEC-161" due-to="crice">Add Match Rating Approach (MRA) phonetic algorithm encoder.</action>
95+
<action dev="ggregory" type="fix" issue="CODEC-163" due-to="leo141">ColognePhonetic encoder unnecessarily creates many char arrays on every loop run.</action>
96+
<action dev="sebb" type="fix" issue="CODEC-160">Base64.encodeBase64URLSafeString doesn't add padding characters at the end.</action>
9797
</release>
9898
<release version="1.7" date="11 September 2012" description="Feature and fix release. Requires a minimum of Java 1.6.">
9999
<action issue="CODEC-157" dev="ggregory" type="add" due-to="ggregory">

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
* "https://commons.apache.org/proper/commons-io/apidocs/org/apache/commons/io/output/CloseShieldOutputStream.html"
3434
* >CloseShieldOutputStream</a>.
3535
* </p>
36-
*
36+
*
3737
* @since 1.5
3838
* @version $Id$
3939
*/
@@ -159,7 +159,7 @@ public void close() throws IOException {
159159

160160
/**
161161
* Writes EOF.
162-
*
162+
*
163163
* @throws IOException
164164
* if an I/O error occurs.
165165
* @since 1.11

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ public static char[] encodeHex(final ByteBuffer data, final boolean toLowerCase)
181181
* a byte[] to convert to Hex characters
182182
* @param toDigits
183183
* the output alphabet (must contain at least 16 chars)
184-
* @return A char[] containing the appropriate characters from the alphabet
184+
* @return A char[] containing the appropriate characters from the alphabet
185185
* For best results, this should be either upper- or lower-case hex.
186186
* @since 1.4
187187
*/

src/main/java/org/apache/commons/codec/cli/Digest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public class Digest {
4545
*
4646
* @param args
4747
* {@code args[0]} is one of {@link MessageDigestAlgorithms} name, {@link MessageDigest} name, {@code ALL}
48-
* , or {@code *}.
48+
* , or {@code *}.
4949
* {@code args[1+]} is a FILE/DIRECTORY/String.
5050
* @throws IOException if an error occurs
5151
*/
@@ -71,7 +71,7 @@ private Digest(final String[] args) {
7171
inputs = null;
7272
} else {
7373
inputs = new String[args.length -1];
74-
System.arraycopy(args, 1, inputs, 0, inputs.length);
74+
System.arraycopy(args, 1, inputs, 0, inputs.length);
7575
}
7676
}
7777

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -960,7 +960,7 @@ public static boolean isAvailable(String messageDigestAlgorithm) {
960960
}
961961

962962
// Fluent interface
963-
963+
964964
private final MessageDigest messageDigest;
965965

966966
private DigestUtils() {

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -943,7 +943,7 @@ public HmacUtils update(final byte[] valueToDigest) {
943943
mac.update(valueToDigest);
944944
return this;
945945
}
946-
946+
947947
/**
948948
* Updates the stored {@link Mac} with the value.
949949
*
@@ -958,7 +958,7 @@ public HmacUtils update(final ByteBuffer valueToDigest) {
958958
mac.update(valueToDigest);
959959
return this;
960960
}
961-
961+
962962
/**
963963
* Updates the stored {@link Mac} with the value.
964964
* String is converted to bytes using the UTF-8 charset.
@@ -973,7 +973,7 @@ public HmacUtils update(final String valueToDigest) {
973973
mac.update(StringUtils.getBytesUtf8(valueToDigest));
974974
return this;
975975
}
976-
976+
977977
/**
978978
* Updates the stored {@link Mac} with the value.
979979
*

0 commit comments

Comments
 (0)