Skip to content

Commit 9efd4f2

Browse files
committed
Standardize on American English spelling of 'behavior'.
1 parent bf561f5 commit 9efd4f2

12 files changed

Lines changed: 18 additions & 18 deletions

File tree

src/changes/changes.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ The <action> type attribute can be add,update,fix,remove.
251251
Add test(s) to check that encodeBase64() does not chunk output.
252252
</action>
253253
<action dev="sebb" type="fix" issue="CODEC-97" due-to="mjryall">
254-
Base64 default constructor behaviour changed to enable chunking in 1.4.
254+
Base64 default constructor behavior changed to enable chunking in 1.4.
255255
</action>
256256
<action dev="ggregory" type="fix" issue="CODEC-99" due-to="julius">
257257
Base64.encodeBase64String() shouldn't chunk.

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@
2424
* is 76 characters and the default lineEnding is CRLF, but these can be overridden by using the appropriate
2525
* constructor.
2626
* <p>
27-
* The default behaviour of the Base32InputStream is to DECODE, whereas the default behaviour of the Base32OutputStream
28-
* is to ENCODE, but this behaviour can be overridden by using a different constructor.
27+
* The default behavior of the Base32InputStream is to DECODE, whereas the default behavior of the Base32OutputStream
28+
* is to ENCODE, but this behavior can be overridden by using a different constructor.
2929
* </p>
3030
* <p>
3131
* Since this class operates directly on byte streams, and not character streams, it is hard-coded to only encode/decode

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@
2424
* is 76 characters and the default lineEnding is CRLF, but these can be overridden by using the appropriate
2525
* constructor.
2626
* <p>
27-
* The default behaviour of the Base32OutputStream is to ENCODE, whereas the default behaviour of the Base32InputStream
28-
* is to DECODE. But this behaviour can be overridden by using a different constructor.
27+
* The default behavior of the Base32OutputStream is to ENCODE, whereas the default behavior of the Base32InputStream
28+
* is to DECODE. But this behavior can be overridden by using a different constructor.
2929
* </p>
3030
* <p>
3131
* Since this class operates directly on byte streams, and not character streams, it is hard-coded to only encode/decode

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -564,7 +564,7 @@ public static byte[] encodeBase64(final byte[] binaryData) {
564564
/**
565565
* Encodes binary data using the base64 algorithm but does not chunk the output.
566566
*
567-
* NOTE: We changed the behaviour of this method from multi-line chunking (commons-codec-1.4) to
567+
* NOTE: We changed the behavior of this method from multi-line chunking (commons-codec-1.4) to
568568
* single-line non-chunking (commons-codec-1.5).
569569
*
570570
* @param binaryData

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@
2424
* is 76 characters and the default lineEnding is CRLF, but these can be overridden by using the appropriate
2525
* constructor.
2626
* <p>
27-
* The default behaviour of the Base64InputStream is to DECODE, whereas the default behaviour of the Base64OutputStream
28-
* is to ENCODE, but this behaviour can be overridden by using a different constructor.
27+
* The default behavior of the Base64InputStream is to DECODE, whereas the default behavior of the Base64OutputStream
28+
* is to ENCODE, but this behavior can be overridden by using a different constructor.
2929
* </p>
3030
* <p>
3131
* This class implements section <cite>6.8. Base64 Content-Transfer-Encoding</cite> from RFC 2045 <cite>Multipurpose

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@
2424
* is 76 characters and the default lineEnding is CRLF, but these can be overridden by using the appropriate
2525
* constructor.
2626
* <p>
27-
* The default behaviour of the Base64OutputStream is to ENCODE, whereas the default behaviour of the Base64InputStream
28-
* is to DECODE. But this behaviour can be overridden by using a different constructor.
27+
* The default behavior of the Base64OutputStream is to ENCODE, whereas the default behavior of the Base64InputStream
28+
* is to DECODE. But this behavior can be overridden by using a different constructor.
2929
* </p>
3030
* <p>
3131
* This class implements section <cite>6.8. Base64 Content-Transfer-Encoding</cite> from RFC 2045 <cite>Multipurpose

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ protected BaseNCodec(final int unencodedBlockSize, final int encodedBlockSize,
230230
}
231231

232232
/**
233-
* Sets the decoding behaviour when the input bytes contain leftover trailing bits that
233+
* Sets the decoding behavior when the input bytes contain leftover trailing bits that
234234
* cannot be created by a valid encoding. These can be bits that are unused from the final
235235
* character or entire characters. The default mode is lenient decoding. Set this to
236236
* {@code true} to enable strict decoding.
@@ -256,7 +256,7 @@ public void setStrictDecoding(boolean strictDecoding) {
256256
}
257257

258258
/**
259-
* Returns true if decoding behaviour is strict. Decoding will raise an
259+
* Returns true if decoding behavior is strict. Decoding will raise an
260260
* {@link IllegalArgumentException} if trailing bits are not part of a valid encoding.
261261
*
262262
* <p>The default is false for lenient encoding. Decoding will compose trailing bits

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1526,7 +1526,7 @@ public static MessageDigest updateDigest(final MessageDigest messageDigest, fina
15261526

15271527
/**
15281528
* Preserves binary compatibility only.
1529-
* As for previous versions does not provide useful behaviour
1529+
* As for previous versions does not provide useful behavior
15301530
* @deprecated since 1.11; only useful to preserve binary compatibility
15311531
*/
15321532
@Deprecated

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -880,7 +880,7 @@ public static Mac updateHmac(final Mac mac, final String valueToDigest) {
880880

881881
/**
882882
* Preserves binary compatibility only.
883-
* As for previous versions does not provide useful behaviour
883+
* As for previous versions does not provide useful behavior
884884
* @deprecated since 1.11; only useful to preserve binary compatibility
885885
*/
886886
@Deprecated

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -798,7 +798,7 @@ public static long[] hash128(final String data) {
798798
public static long[] hash128(final byte[] data, final int offset, final int length, final int seed) {
799799
// ************
800800
// Note: This deliberately fails to apply masking using 0xffffffffL to the seed
801-
// to maintain behavioural compatibility with the original version.
801+
// to maintain behavioral compatibility with the original version.
802802
// The implicit conversion to a long will extend a negative sign
803803
// bit through the upper 32-bits of the long seed. These should be zero.
804804
// ************

0 commit comments

Comments
 (0)