Skip to content

Commit 83881d7

Browse files
committed
[CODEC-176] Spelling fixes in Javadoc and comments.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/codec/trunk@1544349 13f79535-47bb-0310-9956-ffa450edef68
1 parent a85362e commit 83881d7

4 files changed

Lines changed: 13 additions & 12 deletions

File tree

src/changes/changes.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ The <action> type attribute can be add,update,fix,remove.
4747
<action dev="ggregory" type="fix" issue="CODEC-170" due-to="Ron Wheeler, Henri Yandell">Link broken in Metaphone Javadoc</action>
4848
<action dev="ggregory" type="updated" issue="CODEC-174" due-to="Thomas Champagne">Improve performance of Beider Morse encoder</action>
4949
<action dev="ggregory" type="fix" issue="CODEC-175">Beider Morse does not close Scanners used to read config files</action>
50+
<action dev="ggregory" type="fix" issue="CODEC-176" due-to="Ville Skyttä">Spelling fixes in Javadoc and comments</action>
5051
</release>
5152
<release version="1.8" date="19 April 2013" description="Feature and fix release. Requires a minimum of Java 1.6">
5253
<action dev="ggregory" type="add" issue="CODEC-168" due-to="Daniel Cassidy">Add DigestUtils.updateDigest(MessageDigest, InputStream).</action>

src/main/resources/org/apache/commons/codec/language/bm/gen_rules_portuguese.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@
5151

5252
"y" "[aáuiíoóeéê]" "" "j"
5353
"y" "" "[aeiíou]" "j"
54-
"m" "" "[bcdfglnprstv]" "(m|n)" // maybe to add a rule for m/n before a consonant that disappears [preceeding vowel becomes nasalized]
55-
"m" "" "$" "(m|n)" // maybe to add a rule for final m/n that disappears [preceeding vowel becomes nasalized]
54+
"m" "" "[bcdfglnprstv]" "(m|n)" // maybe to add a rule for m/n before a consonant that disappears [preceding vowel becomes nasalized]
55+
"m" "" "$" "(m|n)" // maybe to add a rule for final m/n that disappears [preceding vowel becomes nasalized]
5656

5757
"ão" "" "" "(au|an|on)"
5858
"ãe" "" "" "(aj|an)"

src/main/resources/org/apache/commons/codec/language/bm/sep_rules_portuguese.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@
5050

5151
"y" "[aáuiíoóeéê]" "" "j"
5252
"y" "" "[aeiíou]" "j"
53-
"m" "" "[bcdfglnprstv]" "(m|n)" // maybe to add a rule for m/n before a consonant that disappears [preceeding vowel becomes nasalized]
54-
"m" "" "$" "(m|n)" // maybe to add a rule for final m/n that disappears [preceeding vowel becomes nasalized]
53+
"m" "" "[bcdfglnprstv]" "(m|n)" // maybe to add a rule for m/n before a consonant that disappears [preceding vowel becomes nasalized]
54+
"m" "" "$" "(m|n)" // maybe to add a rule for final m/n that disappears [preceding vowel becomes nasalized]
5555

5656
"ão" "" "" "(au|an|on)"
5757
"ãe" "" "" "(aj|an)"

src/test/java/org/apache/commons/codec/binary/Base64OutputStreamTest.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -181,16 +181,16 @@ public void testBase64OutputStreamByteByByte() throws Exception {
181181
* the data from above, but decoded
182182
* @param chunkSize
183183
* chunk size (line-length) of the base64 encoded data.
184-
* @param seperator
184+
* @param separator
185185
* Line separator in the base64 encoded data.
186186
* @throws Exception
187187
* Usually signifies a bug in the Base64 commons-codec implementation.
188188
*/
189-
private void testByChunk(final byte[] encoded, final byte[] decoded, final int chunkSize, final byte[] seperator) throws Exception {
189+
private void testByChunk(final byte[] encoded, final byte[] decoded, final int chunkSize, final byte[] separator) throws Exception {
190190

191191
// Start with encode.
192192
ByteArrayOutputStream byteOut = new ByteArrayOutputStream();
193-
OutputStream out = new Base64OutputStream(byteOut, true, chunkSize, seperator);
193+
OutputStream out = new Base64OutputStream(byteOut, true, chunkSize, separator);
194194
out.write(decoded);
195195
out.close();
196196
byte[] output = byteOut.toByteArray();
@@ -209,7 +209,7 @@ private void testByChunk(final byte[] encoded, final byte[] decoded, final int c
209209
out = byteOut;
210210
for (int i = 0; i < 10; i++) {
211211
out = new Base64OutputStream(out, false);
212-
out = new Base64OutputStream(out, true, chunkSize, seperator);
212+
out = new Base64OutputStream(out, true, chunkSize, separator);
213213
}
214214
out.write(decoded);
215215
out.close();
@@ -231,16 +231,16 @@ private void testByChunk(final byte[] encoded, final byte[] decoded, final int c
231231
* the data from above, but decoded
232232
* @param chunkSize
233233
* chunk size (line-length) of the base64 encoded data.
234-
* @param seperator
234+
* @param separator
235235
* Line separator in the base64 encoded data.
236236
* @throws Exception
237237
* Usually signifies a bug in the Base64 commons-codec implementation.
238238
*/
239-
private void testByteByByte(final byte[] encoded, final byte[] decoded, final int chunkSize, final byte[] seperator) throws Exception {
239+
private void testByteByByte(final byte[] encoded, final byte[] decoded, final int chunkSize, final byte[] separator) throws Exception {
240240

241241
// Start with encode.
242242
ByteArrayOutputStream byteOut = new ByteArrayOutputStream();
243-
OutputStream out = new Base64OutputStream(byteOut, true, chunkSize, seperator);
243+
OutputStream out = new Base64OutputStream(byteOut, true, chunkSize, separator);
244244
for (final byte element : decoded) {
245245
out.write(element);
246246
}
@@ -274,7 +274,7 @@ private void testByteByByte(final byte[] encoded, final byte[] decoded, final in
274274
out = byteOut;
275275
for (int i = 0; i < 10; i++) {
276276
out = new Base64OutputStream(out, false);
277-
out = new Base64OutputStream(out, true, chunkSize, seperator);
277+
out = new Base64OutputStream(out, true, chunkSize, separator);
278278
}
279279
for (final byte element : decoded) {
280280
out.write(element);

0 commit comments

Comments
 (0)