Skip to content

Commit 7bf48ee

Browse files
committed
Javadoc 8.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/codec/trunk@1619948 13f79535-47bb-0310-9956-ffa450edef68
1 parent 736e150 commit 7bf48ee

20 files changed

Lines changed: 94 additions & 94 deletions

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public class DecoderException extends Exception {
3333
private static final long serialVersionUID = 1L;
3434

3535
/**
36-
* Constructs a new exception with {@code null} as its detail message. The cause is not initialized, and may
36+
* Constructs a new exception with <code>null</code> as its detail message. The cause is not initialized, and may
3737
* subsequently be initialized by a call to {@link #initCause}.
3838
*
3939
* @since 1.4
@@ -62,7 +62,7 @@ public DecoderException(final String message) {
6262
* @param message
6363
* The detail message which is saved for later retrieval by the {@link #getMessage()} method.
6464
* @param cause
65-
* The cause which is saved for later retrieval by the {@link #getCause()} method. A {@code null}
65+
* The cause which is saved for later retrieval by the {@link #getCause()} method. A <code>null</code>
6666
* value is permitted, and indicates that the cause is nonexistent or unknown.
6767
* @since 1.4
6868
*/
@@ -76,7 +76,7 @@ public DecoderException(final String message, final Throwable cause) {
7676
* This constructor is useful for exceptions that are little more than wrappers for other throwables.
7777
*
7878
* @param cause
79-
* The cause which is saved for later retrieval by the {@link #getCause()} method. A {@code null}
79+
* The cause which is saved for later retrieval by the {@link #getCause()} method. A <code>null</code>
8080
* value is permitted, and indicates that the cause is nonexistent or unknown.
8181
* @since 1.4
8282
*/

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public class EncoderException extends Exception {
3434
private static final long serialVersionUID = 1L;
3535

3636
/**
37-
* Constructs a new exception with {@code null} as its detail message. The cause is not initialized, and may
37+
* Constructs a new exception with <code>null</code> as its detail message. The cause is not initialized, and may
3838
* subsequently be initialized by a call to {@link #initCause}.
3939
*
4040
* @since 1.4
@@ -65,7 +65,7 @@ public EncoderException(final String message) {
6565
* @param message
6666
* The detail message which is saved for later retrieval by the {@link #getMessage()} method.
6767
* @param cause
68-
* The cause which is saved for later retrieval by the {@link #getCause()} method. A {@code null}
68+
* The cause which is saved for later retrieval by the {@link #getCause()} method. A <code>null</code>
6969
* value is permitted, and indicates that the cause is nonexistent or unknown.
7070
* @since 1.4
7171
*/
@@ -79,7 +79,7 @@ public EncoderException(final String message, final Throwable cause) {
7979
* This constructor is useful for exceptions that are little more than wrappers for other throwables.
8080
*
8181
* @param cause
82-
* The cause which is saved for later retrieval by the {@link #getCause()} method. A {@code null}
82+
* The cause which is saved for later retrieval by the {@link #getCause()} method. A <code>null</code>
8383
* value is permitted, and indicates that the cause is nonexistent or unknown.
8484
* @since 1.4
8585
*/

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ public Base32(final byte pad) {
175175
* <p>
176176
* When encoding the line length is 0 (no chunking).
177177
* </p>
178-
* @param useHex if {@code true} then use Base32 Hex alphabet
178+
* @param useHex if <code>true</code> then use Base32 Hex alphabet
179179
*/
180180
public Base32(final boolean useHex) {
181181
this(0, null, useHex, PAD_DEFAULT);
@@ -186,7 +186,7 @@ public Base32(final boolean useHex) {
186186
* <p>
187187
* When encoding the line length is 0 (no chunking).
188188
* </p>
189-
* @param useHex if {@code true} then use Base32 Hex alphabet
189+
* @param useHex if <code>true</code> then use Base32 Hex alphabet
190190
* @param pad byte used as padding byte.
191191
*/
192192
public Base32(final boolean useHex, final byte pad) {
@@ -246,7 +246,7 @@ public Base32(final int lineLength, final byte[] lineSeparator) {
246246
* @param lineSeparator
247247
* Each line of encoded data will end with this sequence of bytes.
248248
* @param useHex
249-
* if {@code true}, then use Base32 Hex alphabet, otherwise use Base32 alphabet
249+
* if <code>true</code>, then use Base32 Hex alphabet, otherwise use Base32 alphabet
250250
* @throws IllegalArgumentException
251251
* The provided lineSeparator included some Base32 characters. That's not going to work! Or the
252252
* lineLength &gt; 0 and lineSeparator is null.
@@ -271,7 +271,7 @@ public Base32(final int lineLength, final byte[] lineSeparator, final boolean us
271271
* @param lineSeparator
272272
* Each line of encoded data will end with this sequence of bytes.
273273
* @param useHex
274-
* if {@code true}, then use Base32 Hex alphabet, otherwise use Base32 alphabet
274+
* if <code>true</code>, then use Base32 Hex alphabet, otherwise use Base32 alphabet
275275
* @param pad byte used as padding byte.
276276
* @throws IllegalArgumentException
277277
* The provided lineSeparator included some Base32 characters. That's not going to work! Or the
@@ -530,7 +530,7 @@ void encode(final byte[] in, int inPos, final int inAvail, final Context context
530530
*
531531
* @param octet
532532
* The value to test
533-
* @return {@code true} if the value is defined in the the Base32 alphabet {@code false} otherwise.
533+
* @return <code>true</code> if the value is defined in the the Base32 alphabet <code>false</code> otherwise.
534534
*/
535535
@Override
536536
public boolean isInAlphabet(final byte octet) {

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

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ public Base64() {
182182
* </p>
183183
*
184184
* @param urlSafe
185-
* if {@code true}, URL-safe encoding is used. In most cases this should be set to {@code false}.
185+
* if <code>true</code>, URL-safe encoding is used. In most cases this should be set to <code>false</code>.
186186
* @since 1.4
187187
*/
188188
public Base64(final boolean urlSafe) {
@@ -486,8 +486,8 @@ void decode(final byte[] in, int inPos, final int inAvail, final Context context
486486
*
487487
* @param arrayOctet
488488
* byte array to test
489-
* @return {@code true} if all bytes are valid characters in the Base64 alphabet or if the byte array is empty;
490-
* {@code false}, otherwise
489+
* @return <code>true</code> if all bytes are valid characters in the Base64 alphabet or if the byte array is empty;
490+
* <code>false</code>, otherwise
491491
* @deprecated 1.5 Use {@link #isBase64(byte[])}, will be removed in 2.0.
492492
*/
493493
@Deprecated
@@ -500,7 +500,7 @@ public static boolean isArrayByteBase64(final byte[] arrayOctet) {
500500
*
501501
* @param octet
502502
* The value to test
503-
* @return {@code true} if the value is defined in the the base 64 alphabet, {@code false} otherwise.
503+
* @return <code>true</code> if the value is defined in the the base 64 alphabet, <code>false</code> otherwise.
504504
* @since 1.4
505505
*/
506506
public static boolean isBase64(final byte octet) {
@@ -513,8 +513,8 @@ public static boolean isBase64(final byte octet) {
513513
*
514514
* @param base64
515515
* String to test
516-
* @return {@code true} if all characters in the String are valid characters in the Base64 alphabet or if
517-
* the String is empty; {@code false}, otherwise
516+
* @return <code>true</code> if all characters in the String are valid characters in the Base64 alphabet or if
517+
* the String is empty; <code>false</code>, otherwise
518518
* @since 1.5
519519
*/
520520
public static boolean isBase64(final String base64) {
@@ -527,8 +527,8 @@ public static boolean isBase64(final String base64) {
527527
*
528528
* @param arrayOctet
529529
* byte array to test
530-
* @return {@code true} if all bytes are valid characters in the Base64 alphabet or if the byte array is empty;
531-
* {@code false}, otherwise
530+
* @return <code>true</code> if all bytes are valid characters in the Base64 alphabet or if the byte array is empty;
531+
* <code>false</code>, otherwise
532532
* @since 1.5
533533
*/
534534
public static boolean isBase64(final byte[] arrayOctet) {
@@ -609,7 +609,7 @@ public static byte[] encodeBase64Chunked(final byte[] binaryData) {
609609
* @param binaryData
610610
* Array containing binary data to encode.
611611
* @param isChunked
612-
* if {@code true} this encoder will chunk the base64 output into 76 character blocks
612+
* if <code>true</code> this encoder will chunk the base64 output into 76 character blocks
613613
* @return Base64-encoded data.
614614
* @throws IllegalArgumentException
615615
* Thrown when the input array needs an output array bigger than {@link Integer#MAX_VALUE}
@@ -624,9 +624,9 @@ public static byte[] encodeBase64(final byte[] binaryData, final boolean isChunk
624624
* @param binaryData
625625
* Array containing binary data to encode.
626626
* @param isChunked
627-
* if {@code true} this encoder will chunk the base64 output into 76 character blocks
627+
* if <code>true</code> this encoder will chunk the base64 output into 76 character blocks
628628
* @param urlSafe
629-
* if {@code true} this encoder will emit - and _ instead of the usual + and / characters.
629+
* if <code>true</code> this encoder will emit - and _ instead of the usual + and / characters.
630630
* <b>Note: no padding is added when encoding using the URL-safe alphabet.</b>
631631
* @return Base64-encoded data.
632632
* @throws IllegalArgumentException
@@ -643,9 +643,9 @@ public static byte[] encodeBase64(final byte[] binaryData, final boolean isChunk
643643
* @param binaryData
644644
* Array containing binary data to encode.
645645
* @param isChunked
646-
* if {@code true} this encoder will chunk the base64 output into 76 character blocks
646+
* if <code>true</code> this encoder will chunk the base64 output into 76 character blocks
647647
* @param urlSafe
648-
* if {@code true} this encoder will emit - and _ instead of the usual + and / characters.
648+
* if <code>true</code> this encoder will emit - and _ instead of the usual + and / characters.
649649
* <b>Note: no padding is added when encoding using the URL-safe alphabet.</b>
650650
* @param maxResultSize
651651
* The maximum result size to accept.
@@ -765,7 +765,7 @@ static byte[] toIntegerBytes(final BigInteger bigInt) {
765765
*
766766
* @param octet
767767
* The value to test
768-
* @return {@code true} if the value is defined in the the Base64 alphabet {@code false} otherwise.
768+
* @return <code>true</code> if the value is defined in the the Base64 alphabet <code>false</code> otherwise.
769769
*/
770770
@Override
771771
protected boolean isInAlphabet(final byte octet) {

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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,7 @@ public byte[] encode(final byte[] pArray) {
445445
*
446446
* @param value The value to test
447447
*
448-
* @return {@code true} if the value is defined in the current alphabet, {@code false} otherwise.
448+
* @return <code>true</code> if the value is defined in the current alphabet, <code>false</code> otherwise.
449449
*/
450450
protected abstract boolean isInAlphabet(byte value);
451451

@@ -454,10 +454,10 @@ public byte[] encode(final byte[] pArray) {
454454
* The method optionally treats whitespace and pad as valid.
455455
*
456456
* @param arrayOctet byte array to test
457-
* @param allowWSPad if {@code true}, then whitespace and PAD are also allowed
457+
* @param allowWSPad if <code>true</code>, then whitespace and PAD are also allowed
458458
*
459-
* @return {@code true} if all bytes are valid characters in the alphabet or if the byte array is empty;
460-
* {@code false}, otherwise
459+
* @return <code>true</code> if all bytes are valid characters in the alphabet or if the byte array is empty;
460+
* <code>false</code>, otherwise
461461
*/
462462
public boolean isInAlphabet(final byte[] arrayOctet, final boolean allowWSPad) {
463463
for (int i = 0; i < arrayOctet.length; i++) {
@@ -474,8 +474,8 @@ public boolean isInAlphabet(final byte[] arrayOctet, final boolean allowWSPad) {
474474
* The method treats whitespace and PAD as valid.
475475
*
476476
* @param basen String to test
477-
* @return {@code true} if all characters in the String are valid characters in the alphabet or if
478-
* the String is empty; {@code false}, otherwise
477+
* @return <code>true</code> if all characters in the String are valid characters in the alphabet or if
478+
* the String is empty; <code>false</code>, otherwise
479479
* @see #isInAlphabet(byte[], boolean)
480480
*/
481481
public boolean isInAlphabet(final String basen) {
@@ -489,7 +489,7 @@ public boolean isInAlphabet(final String basen) {
489489
*
490490
* @param arrayOctet
491491
* byte array to test
492-
* @return {@code true} if any byte is a valid character in the alphabet or PAD; {@code false} otherwise
492+
* @return <code>true</code> if any byte is a valid character in the alphabet or PAD; <code>false</code> otherwise
493493
*/
494494
protected boolean containsAlphabetOrPad(final byte[] arrayOctet) {
495495
if (arrayOctet == null) {

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,11 +216,11 @@ public static byte[] fromAscii(final byte[] ascii) {
216216
}
217217

218218
/**
219-
* Returns {@code true} if the given array is {@code null} or empty (size 0.)
219+
* Returns <code>true</code> if the given array is <code>null</code> or empty (size 0.)
220220
*
221221
* @param array
222222
* the source array
223-
* @return {@code true} if the given array is {@code null} or empty (size 0.)
223+
* @return <code>true</code> if the given array is <code>null</code> or empty (size 0.)
224224
*/
225225
private static boolean isEmpty(final byte[] array) {
226226
return array == null || array.length == 0;

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
/**
2020
* <p>
21-
* Operations on {@link CharSequence} that are {@code null} safe.
21+
* Operations on {@link CharSequence} that are <code>null</code> safe.
2222
* </p>
2323
* <p>
2424
* Copied from Apache Commons Lang r1586295 on April 10, 2014 (day of 3.3.2 release).
@@ -33,15 +33,15 @@ public class CharSequenceUtils {
3333
* Green implementation of regionMatches.
3434
*
3535
* @param cs
36-
* the {@code CharSequence} to be processed
36+
* the <code>CharSequence</code> to be processed
3737
* @param ignoreCase
3838
* whether or not to be case insensitive
3939
* @param thisStart
40-
* the index to start on the {@code cs} CharSequence
40+
* the index to start on the <code>cs</code> CharSequence
4141
* @param substring
42-
* the {@code CharSequence} to be looked for
42+
* the <code>CharSequence</code> to be looked for
4343
* @param start
44-
* the index to start on the {@code substring} CharSequence
44+
* the index to start on the <code>substring</code> CharSequence
4545
* @param length
4646
* character length of the region
4747
* @return whether the region matched

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ public static char[] encodeHex(final byte[] data) {
117117
* @param data
118118
* a byte[] to convert to Hex characters
119119
* @param toLowerCase
120-
* {@code true} converts to lowercase, {@code false} to uppercase
120+
* <code>true</code> converts to lowercase, <code>false</code> to uppercase
121121
* @return A char[] containing hexadecimal characters
122122
* @since 1.4
123123
*/

0 commit comments

Comments
 (0)