Skip to content

Commit 1b7ca88

Browse files
committed
Javadoc: Replace <code></code> HTML tags with Javadoc {@code} notation.
1 parent 9637dd4 commit 1b7ca88

38 files changed

Lines changed: 238 additions & 238 deletions

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,17 +29,17 @@
2929
* </p>
3030
*
3131
* <ul>
32-
* <li><code>US-ASCII</code><p>
32+
* <li>{@code US-ASCII}<p>
3333
* Seven-bit ASCII, a.k.a. ISO646-US, a.k.a. the Basic Latin block of the Unicode character set.</p></li>
34-
* <li><code>ISO-8859-1</code><p>
34+
* <li>{@code ISO-8859-1}<p>
3535
* ISO Latin Alphabet No. 1, a.k.a. ISO-LATIN-1.</p></li>
36-
* <li><code>UTF-8</code><p>
36+
* <li>{@code UTF-8}<p>
3737
* Eight-bit Unicode Transformation Format.</p></li>
38-
* <li><code>UTF-16BE</code><p>
38+
* <li>{@code UTF-16BE}<p>
3939
* Sixteen-bit Unicode Transformation Format, big-endian byte order.</p></li>
40-
* <li><code>UTF-16LE</code><p>
40+
* <li>{@code UTF-16LE}<p>
4141
* Sixteen-bit Unicode Transformation Format, little-endian byte order.</p></li>
42-
* <li><code>UTF-16</code><p>
42+
* <li>{@code UTF-16}<p>
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.)</p></li>
4545
* </ul>

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,17 +30,17 @@
3030
* </p>
3131
*
3232
* <ul>
33-
* <li><code>US-ASCII</code><p>
33+
* <li>{@code US-ASCII}<p>
3434
* Seven-bit ASCII, a.k.a. ISO646-US, a.k.a. the Basic Latin block of the Unicode character set.</p></li>
35-
* <li><code>ISO-8859-1</code><p>
35+
* <li>{@code ISO-8859-1}<p>
3636
* ISO Latin Alphabet No. 1, a.k.a. ISO-LATIN-1.</p></li>
37-
* <li><code>UTF-8</code><p>
37+
* <li>{@code UTF-8}<p>
3838
* Eight-bit Unicode Transformation Format.</p></li>
39-
* <li><code>UTF-16BE</code><p>
39+
* <li>{@code UTF-16BE}<p>
4040
* Sixteen-bit Unicode Transformation Format, big-endian byte order.</p></li>
41-
* <li><code>UTF-16LE</code><p>
41+
* <li>{@code UTF-16LE}<p>
4242
* Sixteen-bit Unicode Transformation Format, little-endian byte order.</p></li>
43-
* <li><code>UTF-16</code><p>
43+
* <li>{@code UTF-16}<p>
4444
* Sixteen-bit Unicode Transformation Format, byte order specified by a mandatory initial byte-order mark (either order
4545
* accepted on input, big-endian used on output.)</p></li>
4646
* </ul>

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

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

3434
/**
35-
* Constructs a new exception with <code>null</code> as its detail message. The cause is not initialized, and may
35+
* Constructs a new exception with {@code null} as its detail message. The cause is not initialized, and may
3636
* subsequently be initialized by a call to {@link #initCause}.
3737
*
3838
* @since 1.4
@@ -55,13 +55,13 @@ public DecoderException(final String message) {
5555
/**
5656
* Constructs a new exception with the specified detail message and cause.
5757
* <p>
58-
* Note that the detail message associated with <code>cause</code> is not automatically incorporated into this
58+
* Note that the detail message associated with {@code cause} is not automatically incorporated into this
5959
* exception's detail message.
6060
*
6161
* @param message
6262
* The detail message which is saved for later retrieval by the {@link #getMessage()} method.
6363
* @param cause
64-
* The cause which is saved for later retrieval by the {@link #getCause()} method. A <code>null</code>
64+
* The cause which is saved for later retrieval by the {@link #getCause()} method. A {@code null}
6565
* value is permitted, and indicates that the cause is nonexistent or unknown.
6666
* @since 1.4
6767
*/
@@ -71,11 +71,11 @@ public DecoderException(final String message, final Throwable cause) {
7171

7272
/**
7373
* Constructs a new exception with the specified cause and a detail message of <code>(cause==null ?
74-
* null : cause.toString())</code> (which typically contains the class and detail message of <code>cause</code>).
74+
* null : cause.toString())</code> (which typically contains the class and detail message of {@code cause}).
7575
* This constructor is useful for exceptions that are little more than wrappers for other throwables.
7676
*
7777
* @param cause
78-
* The cause which is saved for later retrieval by the {@link #getCause()} method. A <code>null</code>
78+
* The cause which is saved for later retrieval by the {@link #getCause()} method. A {@code null}
7979
* value is permitted, and indicates that the cause is nonexistent or unknown.
8080
* @since 1.4
8181
*/

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public interface Encoder {
2929

3030
/**
3131
* Encodes an "Object" and returns the encoded content as an Object. The Objects here may just be
32-
* <code>byte[]</code> or <code>String</code>s depending on the implementation used.
32+
* {@code byte[]} or {@code String}s depending on the implementation used.
3333
*
3434
* @param source
3535
* An object to encode

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

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

3535
/**
36-
* Constructs a new exception with <code>null</code> as its detail message. The cause is not initialized, and may
36+
* Constructs a new exception with {@code null} 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
@@ -57,14 +57,14 @@ public EncoderException(final String message) {
5757
* Constructs a new exception with the specified detail message and cause.
5858
*
5959
* <p>
60-
* Note that the detail message associated with <code>cause</code> is not automatically incorporated into this
60+
* Note that the detail message associated with {@code cause} is not automatically incorporated into this
6161
* exception's detail message.
6262
* </p>
6363
*
6464
* @param message
6565
* The detail message which is saved for later retrieval by the {@link #getMessage()} method.
6666
* @param cause
67-
* The cause which is saved for later retrieval by the {@link #getCause()} method. A <code>null</code>
67+
* The cause which is saved for later retrieval by the {@link #getCause()} method. A {@code null}
6868
* value is permitted, and indicates that the cause is nonexistent or unknown.
6969
* @since 1.4
7070
*/
@@ -74,11 +74,11 @@ public EncoderException(final String message, final Throwable cause) {
7474

7575
/**
7676
* Constructs a new exception with the specified cause and a detail message of <code>(cause==null ?
77-
* null : cause.toString())</code> (which typically contains the class and detail message of <code>cause</code>).
77+
* null : cause.toString())</code> (which typically contains the class and detail message of {@code cause}).
7878
* This constructor is useful for exceptions that are little more than wrappers for other throwables.
7979
*
8080
* @param cause
81-
* The cause which is saved for later retrieval by the {@link #getCause()} method. A <code>null</code>
81+
* The cause which is saved for later retrieval by the {@link #getCause()} method. A {@code null}
8282
* value is permitted, and indicates that the cause is nonexistent or unknown.
8383
* @since 1.4
8484
*/

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public StringEncoderComparator(final StringEncoder stringEncoder) {
6161
* Compares two strings based not on the strings themselves, but on an encoding of the two strings using the
6262
* StringEncoder this Comparator was created with.
6363
*
64-
* If an {@link EncoderException} is encountered, return <code>0</code>.
64+
* If an {@link EncoderException} is encountered, return {@code 0}.
6565
*
6666
* @param o1
6767
* the object to compare

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ public class Base32 extends BaseNCodec {
140140

141141
/**
142142
* Convenience variable to help us determine when our buffer is going to run out of room and needs resizing.
143-
* <code>decodeSize = {@link #BYTES_PER_ENCODED_BLOCK} - 1 + lineSeparator.length;</code>
143+
* {@code decodeSize = {@link #BYTES_PER_ENCODED_BLOCK} - 1 + lineSeparator.length;}
144144
*/
145145
private final int decodeSize;
146146

@@ -151,7 +151,7 @@ public class Base32 extends BaseNCodec {
151151

152152
/**
153153
* Convenience variable to help us determine when our buffer is going to run out of room and needs resizing.
154-
* <code>encodeSize = {@link #BYTES_PER_ENCODED_BLOCK} + lineSeparator.length;</code>
154+
* {@code encodeSize = {@link #BYTES_PER_ENCODED_BLOCK} + lineSeparator.length;}
155155
*/
156156
private final int encodeSize;
157157

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

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -154,13 +154,13 @@ public class Base64 extends BaseNCodec {
154154

155155
/**
156156
* Convenience variable to help us determine when our buffer is going to run out of room and needs resizing.
157-
* <code>decodeSize = 3 + lineSeparator.length;</code>
157+
* {@code decodeSize = 3 + lineSeparator.length;}
158158
*/
159159
private final int decodeSize;
160160

161161
/**
162162
* Convenience variable to help us determine when our buffer is going to run out of room and needs resizing.
163-
* <code>encodeSize = 4 + lineSeparator.length;</code>
163+
* {@code encodeSize = 4 + lineSeparator.length;}
164164
*/
165165
private final int encodeSize;
166166

@@ -189,8 +189,8 @@ public Base64() {
189189
* </p>
190190
*
191191
* @param urlSafe
192-
* if <code>true</code>, URL-safe encoding is used. In most cases this should be set to
193-
* <code>false</code>.
192+
* if {@code true}, URL-safe encoding is used. In most cases this should be set to
193+
* {@code false}.
194194
* @since 1.4
195195
*/
196196
public Base64(final boolean urlSafe) {
@@ -495,8 +495,8 @@ void decode(final byte[] in, int inPos, final int inAvail, final Context context
495495
*
496496
* @param arrayOctet
497497
* byte array to test
498-
* @return <code>true</code> if all bytes are valid characters in the Base64 alphabet or if the byte array is empty;
499-
* <code>false</code>, otherwise
498+
* @return {@code true} if all bytes are valid characters in the Base64 alphabet or if the byte array is empty;
499+
* {@code false}, otherwise
500500
* @deprecated 1.5 Use {@link #isBase64(byte[])}, will be removed in 2.0.
501501
*/
502502
@Deprecated
@@ -505,11 +505,11 @@ public static boolean isArrayByteBase64(final byte[] arrayOctet) {
505505
}
506506

507507
/**
508-
* Returns whether or not the <code>octet</code> is in the base 64 alphabet.
508+
* Returns whether or not the {@code octet} is in the base 64 alphabet.
509509
*
510510
* @param octet
511511
* The value to test
512-
* @return <code>true</code> if the value is defined in the the base 64 alphabet, <code>false</code> otherwise.
512+
* @return {@code true} if the value is defined in the the base 64 alphabet, {@code false} otherwise.
513513
* @since 1.4
514514
*/
515515
public static boolean isBase64(final byte octet) {
@@ -522,8 +522,8 @@ public static boolean isBase64(final byte octet) {
522522
*
523523
* @param base64
524524
* String to test
525-
* @return <code>true</code> if all characters in the String are valid characters in the Base64 alphabet or if
526-
* the String is empty; <code>false</code>, otherwise
525+
* @return {@code true} if all characters in the String are valid characters in the Base64 alphabet or if
526+
* the String is empty; {@code false}, otherwise
527527
* @since 1.5
528528
*/
529529
public static boolean isBase64(final String base64) {
@@ -536,8 +536,8 @@ public static boolean isBase64(final String base64) {
536536
*
537537
* @param arrayOctet
538538
* byte array to test
539-
* @return <code>true</code> if all bytes are valid characters in the Base64 alphabet or if the byte array is empty;
540-
* <code>false</code>, otherwise
539+
* @return {@code true} if all bytes are valid characters in the Base64 alphabet or if the byte array is empty;
540+
* {@code false}, otherwise
541541
* @since 1.5
542542
*/
543543
public static boolean isBase64(final byte[] arrayOctet) {
@@ -618,7 +618,7 @@ public static byte[] encodeBase64Chunked(final byte[] binaryData) {
618618
* @param binaryData
619619
* Array containing binary data to encode.
620620
* @param isChunked
621-
* if <code>true</code> this encoder will chunk the base64 output into 76 character blocks
621+
* if {@code true} this encoder will chunk the base64 output into 76 character blocks
622622
* @return Base64-encoded data.
623623
* @throws IllegalArgumentException
624624
* Thrown when the input array needs an output array bigger than {@link Integer#MAX_VALUE}
@@ -633,9 +633,9 @@ public static byte[] encodeBase64(final byte[] binaryData, final boolean isChunk
633633
* @param binaryData
634634
* Array containing binary data to encode.
635635
* @param isChunked
636-
* if <code>true</code> this encoder will chunk the base64 output into 76 character blocks
636+
* if {@code true} this encoder will chunk the base64 output into 76 character blocks
637637
* @param urlSafe
638-
* if <code>true</code> this encoder will emit - and _ instead of the usual + and / characters.
638+
* if {@code true} this encoder will emit - and _ instead of the usual + and / characters.
639639
* <b>Note: no padding is added when encoding using the URL-safe alphabet.</b>
640640
* @return Base64-encoded data.
641641
* @throws IllegalArgumentException
@@ -652,9 +652,9 @@ public static byte[] encodeBase64(final byte[] binaryData, final boolean isChunk
652652
* @param binaryData
653653
* Array containing binary data to encode.
654654
* @param isChunked
655-
* if <code>true</code> this encoder will chunk the base64 output into 76 character blocks
655+
* if {@code true} this encoder will chunk the base64 output into 76 character blocks
656656
* @param urlSafe
657-
* if <code>true</code> this encoder will emit - and _ instead of the usual + and / characters.
657+
* if {@code true} this encoder will emit - and _ instead of the usual + and / characters.
658658
* <b>Note: no padding is added when encoding using the URL-safe alphabet.</b>
659659
* @param maxResultSize
660660
* The maximum result size to accept.
@@ -745,10 +745,10 @@ public static byte[] encodeInteger(final BigInteger bigInt) {
745745
}
746746

747747
/**
748-
* Returns a byte-array representation of a <code>BigInteger</code> without sign bit.
748+
* Returns a byte-array representation of a {@code BigInteger} without sign bit.
749749
*
750750
* @param bigInt
751-
* <code>BigInteger</code> to be converted
751+
* {@code BigInteger} to be converted
752752
* @return a byte array representation of the BigInteger parameter
753753
*/
754754
static byte[] toIntegerBytes(final BigInteger bigInt) {
@@ -776,11 +776,11 @@ static byte[] toIntegerBytes(final BigInteger bigInt) {
776776
}
777777

778778
/**
779-
* Returns whether or not the <code>octet</code> is in the Base64 alphabet.
779+
* Returns whether or not the {@code octet} is in the Base64 alphabet.
780780
*
781781
* @param octet
782782
* The value to test
783-
* @return <code>true</code> if the value is defined in the the Base64 alphabet <code>false</code> otherwise.
783+
* @return {@code true} if the value is defined in the the Base64 alphabet {@code false} otherwise.
784784
*/
785785
@Override
786786
protected boolean isInAlphabet(final byte octet) {

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

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -191,11 +191,11 @@ public String toString() {
191191
private final int chunkSeparatorLength;
192192

193193
/**
194-
* Note <code>lineLength</code> is rounded down to the nearest multiple of the encoded block size.
195-
* If <code>chunkSeparatorLength</code> is zero, then chunking is disabled.
194+
* Note {@code lineLength} is rounded down to the nearest multiple of the encoded block size.
195+
* If {@code chunkSeparatorLength} is zero, then chunking is disabled.
196196
* @param unencodedBlockSize the size of an unencoded block (e.g. Base64 = 3)
197197
* @param encodedBlockSize the size of an encoded block (e.g. Base64 = 4)
198-
* @param lineLength if &gt; 0, use chunking with a length <code>lineLength</code>
198+
* @param lineLength if &gt; 0, use chunking with a length {@code lineLength}
199199
* @param chunkSeparatorLength the chunk separator length, if relevant
200200
*/
201201
protected BaseNCodec(final int unencodedBlockSize, final int encodedBlockSize,
@@ -204,11 +204,11 @@ protected BaseNCodec(final int unencodedBlockSize, final int encodedBlockSize,
204204
}
205205

206206
/**
207-
* Note <code>lineLength</code> is rounded down to the nearest multiple of the encoded block size.
208-
* If <code>chunkSeparatorLength</code> is zero, then chunking is disabled.
207+
* Note {@code lineLength} is rounded down to the nearest multiple of the encoded block size.
208+
* If {@code chunkSeparatorLength} is zero, then chunking is disabled.
209209
* @param unencodedBlockSize the size of an unencoded block (e.g. Base64 = 3)
210210
* @param encodedBlockSize the size of an encoded block (e.g. Base64 = 4)
211-
* @param lineLength if &gt; 0, use chunking with a length <code>lineLength</code>
211+
* @param lineLength if &gt; 0, use chunking with a length {@code lineLength}
212212
* @param chunkSeparatorLength the chunk separator length, if relevant
213213
* @param pad byte used as padding byte.
214214
*/
@@ -321,7 +321,7 @@ private static int createPositiveCapacity(int minCapacity) {
321321
}
322322

323323
/**
324-
* Ensure that the buffer has room for <code>size</code> bytes
324+
* Ensure that the buffer has room for {@code size} bytes
325325
*
326326
* @param size minimum spare space required
327327
* @param context the context to be used
@@ -532,12 +532,12 @@ public byte[] encode(final byte[] pArray, final int offset, final int length) {
532532
abstract void decode(byte[] pArray, int i, int length, Context context);
533533

534534
/**
535-
* Returns whether or not the <code>octet</code> is in the current alphabet.
535+
* Returns whether or not the {@code octet} is in the current alphabet.
536536
* Does not allow whitespace or pad.
537537
*
538538
* @param value The value to test
539539
*
540-
* @return <code>true</code> if the value is defined in the current alphabet, <code>false</code> otherwise.
540+
* @return {@code true} if the value is defined in the current alphabet, {@code false} otherwise.
541541
*/
542542
protected abstract boolean isInAlphabet(byte value);
543543

@@ -546,10 +546,10 @@ public byte[] encode(final byte[] pArray, final int offset, final int length) {
546546
* The method optionally treats whitespace and pad as valid.
547547
*
548548
* @param arrayOctet byte array to test
549-
* @param allowWSPad if <code>true</code>, then whitespace and PAD are also allowed
549+
* @param allowWSPad if {@code true}, then whitespace and PAD are also allowed
550550
*
551-
* @return <code>true</code> if all bytes are valid characters in the alphabet or if the byte array is empty;
552-
* <code>false</code>, otherwise
551+
* @return {@code true} if all bytes are valid characters in the alphabet or if the byte array is empty;
552+
* {@code false}, otherwise
553553
*/
554554
public boolean isInAlphabet(final byte[] arrayOctet, final boolean allowWSPad) {
555555
for (final byte octet : arrayOctet) {
@@ -566,8 +566,8 @@ public boolean isInAlphabet(final byte[] arrayOctet, final boolean allowWSPad) {
566566
* The method treats whitespace and PAD as valid.
567567
*
568568
* @param basen String to test
569-
* @return <code>true</code> if all characters in the String are valid characters in the alphabet or if
570-
* the String is empty; <code>false</code>, otherwise
569+
* @return {@code true} if all characters in the String are valid characters in the alphabet or if
570+
* the String is empty; {@code false}, otherwise
571571
* @see #isInAlphabet(byte[], boolean)
572572
*/
573573
public boolean isInAlphabet(final String basen) {
@@ -581,7 +581,7 @@ public boolean isInAlphabet(final String basen) {
581581
*
582582
* @param arrayOctet
583583
* byte array to test
584-
* @return <code>true</code> if any byte is a valid character in the alphabet or PAD; <code>false</code> otherwise
584+
* @return {@code true} if any byte is a valid character in the alphabet or PAD; {@code false} otherwise
585585
*/
586586
protected boolean containsAlphabetOrPad(final byte[] arrayOctet) {
587587
if (arrayOctet == null) {

0 commit comments

Comments
 (0)