Skip to content

Commit e23e8e1

Browse files
committed
Replace "<code>true</code>" with "{@code true}"
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/codec/trunk@1306423 13f79535-47bb-0310-9956-ffa450edef68
1 parent 759b370 commit e23e8e1

11 files changed

Lines changed: 34 additions & 34 deletions

File tree

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ public Base32() {
167167
* <p>
168168
* When encoding the line length is 0 (no chunking).
169169
* </p>
170-
* @param useHex if <code>true</code> then use Base32 Hex alphabet
170+
* @param useHex if {@code true} then use Base32 Hex alphabet
171171
*/
172172
public Base32(boolean useHex) {
173173
this(0, null, useHex);
@@ -222,7 +222,7 @@ public Base32(int lineLength, byte[] lineSeparator) {
222222
* If lineLength <= 0, then the output will not be divided into lines (chunks). Ignored when decoding.
223223
* @param lineSeparator
224224
* Each line of encoded data will end with this sequence of bytes.
225-
* @param useHex if <code>true</code>, then use Base32 Hex alphabet, otherwise use Base32 alphabet
225+
* @param useHex if {@code true}, then use Base32 Hex alphabet, otherwise use Base32 alphabet
226226
* @throws IllegalArgumentException
227227
* The provided lineSeparator included some Base32 characters. That's not going to work!
228228
* Or the lineLength > 0 and lineSeparator is null.
@@ -464,7 +464,7 @@ void encode(byte[] in, int inPos, int inAvail) { // package protected for access
464464
*
465465
* @param octet
466466
* The value to test
467-
* @return <code>true</code> if the value is defined in the the Base32 alphabet <code>false</code> otherwise.
467+
* @return {@code true} if the value is defined in the the Base32 alphabet <code>false</code> otherwise.
468468
*/
469469
@Override
470470
public boolean isInAlphabet(byte octet) {

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

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ public Base64() {
187187
* </p>
188188
*
189189
* @param urlSafe
190-
* if <code>true</code>, URL-safe encoding is used. In most cases this should be set to
190+
* if {@code true}, URL-safe encoding is used. In most cases this should be set to
191191
* <code>false</code>.
192192
* @since 1.4
193193
*/
@@ -473,7 +473,7 @@ void decode(byte[] in, int inPos, int inAvail) {
473473
*
474474
* @param arrayOctet
475475
* byte array to test
476-
* @return <code>true</code> if all bytes are valid characters in the Base64 alphabet or if the byte array is empty;
476+
* @return {@code true} if all bytes are valid characters in the Base64 alphabet or if the byte array is empty;
477477
* <code>false</code>, otherwise
478478
* @deprecated 1.5 Use {@link #isBase64(byte[])}, will be removed in 2.0.
479479
*/
@@ -486,7 +486,7 @@ public static boolean isArrayByteBase64(byte[] arrayOctet) {
486486
*
487487
* @param octet
488488
* The value to test
489-
* @return <code>true</code> if the value is defined in the the base 64 alphabet, <code>false</code> otherwise.
489+
* @return {@code true} if the value is defined in the the base 64 alphabet, <code>false</code> otherwise.
490490
* @since 1.4
491491
*/
492492
public static boolean isBase64(byte octet) {
@@ -499,7 +499,7 @@ public static boolean isBase64(byte octet) {
499499
*
500500
* @param base64
501501
* String to test
502-
* @return <code>true</code> if all characters in the String are valid characters in the Base64 alphabet or if
502+
* @return {@code true} if all characters in the String are valid characters in the Base64 alphabet or if
503503
* the String is empty; <code>false</code>, otherwise
504504
* @since 1.5
505505
*/
@@ -513,7 +513,7 @@ public static boolean isBase64(String base64) {
513513
*
514514
* @param arrayOctet
515515
* byte array to test
516-
* @return <code>true</code> if all bytes are valid characters in the Base64 alphabet or if the byte array is empty;
516+
* @return {@code true} if all bytes are valid characters in the Base64 alphabet or if the byte array is empty;
517517
* <code>false</code>, otherwise
518518
* @since 1.5
519519
*/
@@ -595,7 +595,7 @@ public static byte[] encodeBase64Chunked(byte[] binaryData) {
595595
* @param binaryData
596596
* Array containing binary data to encode.
597597
* @param isChunked
598-
* if <code>true</code> this encoder will chunk the base64 output into 76 character blocks
598+
* if {@code true} this encoder will chunk the base64 output into 76 character blocks
599599
* @return Base64-encoded data.
600600
* @throws IllegalArgumentException
601601
* Thrown when the input array needs an output array bigger than {@link Integer#MAX_VALUE}
@@ -610,9 +610,9 @@ public static byte[] encodeBase64(byte[] binaryData, boolean isChunked) {
610610
* @param binaryData
611611
* Array containing binary data to encode.
612612
* @param isChunked
613-
* if <code>true</code> this encoder will chunk the base64 output into 76 character blocks
613+
* if {@code true} this encoder will chunk the base64 output into 76 character blocks
614614
* @param urlSafe
615-
* if <code>true</code> this encoder will emit - and _ instead of the usual + and / characters.
615+
* if {@code true} this encoder will emit - and _ instead of the usual + and / characters.
616616
* @return Base64-encoded data.
617617
* @throws IllegalArgumentException
618618
* Thrown when the input array needs an output array bigger than {@link Integer#MAX_VALUE}
@@ -628,9 +628,9 @@ public static byte[] encodeBase64(byte[] binaryData, boolean isChunked, boolean
628628
* @param binaryData
629629
* Array containing binary data to encode.
630630
* @param isChunked
631-
* if <code>true</code> this encoder will chunk the base64 output into 76 character blocks
631+
* if {@code true} this encoder will chunk the base64 output into 76 character blocks
632632
* @param urlSafe
633-
* if <code>true</code> this encoder will emit - and _ instead of the usual + and / characters.
633+
* if {@code true} this encoder will emit - and _ instead of the usual + and / characters.
634634
* @param maxResultSize
635635
* The maximum result size to accept.
636636
* @return Base64-encoded data.
@@ -748,7 +748,7 @@ static byte[] toIntegerBytes(BigInteger bigInt) {
748748
*
749749
* @param octet
750750
* The value to test
751-
* @return <code>true</code> if the value is defined in the the Base32 alphabet <code>false</code> otherwise.
751+
* @return {@code true} if the value is defined in the the Base32 alphabet <code>false</code> otherwise.
752752
*/
753753
@Override
754754
protected boolean isInAlphabet(byte octet) {

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ public String encodeAsString(byte[] pArray){
372372
*
373373
* @param value The value to test
374374
*
375-
* @return <code>true</code> if the value is defined in the current alphabet, <code>false</code> otherwise.
375+
* @return {@code true} if the value is defined in the current alphabet, <code>false</code> otherwise.
376376
*/
377377
protected abstract boolean isInAlphabet(byte value);
378378

@@ -381,9 +381,9 @@ public String encodeAsString(byte[] pArray){
381381
* The method optionally treats whitespace and pad as valid.
382382
*
383383
* @param arrayOctet byte array to test
384-
* @param allowWSPad if <code>true</code>, then whitespace and PAD are also allowed
384+
* @param allowWSPad if {@code true}, then whitespace and PAD are also allowed
385385
*
386-
* @return <code>true</code> if all bytes are valid characters in the alphabet or if the byte array is empty;
386+
* @return {@code true} if all bytes are valid characters in the alphabet or if the byte array is empty;
387387
* <code>false</code>, otherwise
388388
*/
389389
public boolean isInAlphabet(byte[] arrayOctet, boolean allowWSPad) {
@@ -401,7 +401,7 @@ public boolean isInAlphabet(byte[] arrayOctet, boolean allowWSPad) {
401401
* The method treats whitespace and PAD as valid.
402402
*
403403
* @param basen String to test
404-
* @return <code>true</code> if all characters in the String are valid characters in the alphabet or if
404+
* @return {@code true} if all characters in the String are valid characters in the alphabet or if
405405
* the String is empty; <code>false</code>, otherwise
406406
* @see #isInAlphabet(byte[], boolean)
407407
*/
@@ -416,7 +416,7 @@ public boolean isInAlphabet(String basen) {
416416
*
417417
* @param arrayOctet
418418
* byte array to test
419-
* @return <code>true</code> if any byte is a valid character in the alphabet or PAD; <code>false</code> otherwise
419+
* @return {@code true} if any byte is a valid character in the alphabet or PAD; <code>false</code> otherwise
420420
*/
421421
protected boolean containsAlphabetOrPad(byte[] arrayOctet) {
422422
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
@@ -211,11 +211,11 @@ public static byte[] fromAscii(byte[] ascii) {
211211
}
212212

213213
/**
214-
* Returns <code>true</code> if the given array is {@code null} or empty (size 0.)
214+
* Returns {@code true} if the given array is {@code null} or empty (size 0.)
215215
*
216216
* @param array
217217
* the source array
218-
* @return <code>true</code> if the given array is {@code null} or empty (size 0.)
218+
* @return {@code true} if the given array is {@code null} or empty (size 0.)
219219
*/
220220
private static boolean isEmpty(byte[] array) {
221221
return array == null || array.length == 0;

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

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

src/main/java/org/apache/commons/codec/language/AbstractCaverphone.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public Object encode(Object source) throws EncoderException {
6767
* First of two strings to compare
6868
* @param str2
6969
* Second of two strings to compare
70-
* @return <code>true</code> if the encodings of these strings are identical, <code>false</code> otherwise.
70+
* @return {@code true} if the encodings of these strings are identical, <code>false</code> otherwise.
7171
* @throws EncoderException
7272
*/
7373
public boolean isEncodeEqual(String str1, String str2) throws EncoderException {

src/main/java/org/apache/commons/codec/language/Caverphone.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ public String encode(String pString) {
9494
* First of two strings to compare
9595
* @param str2
9696
* Second of two strings to compare
97-
* @return <code>true</code> if the caverphones of these strings are identical, <code>false</code> otherwise.
97+
* @return {@code true} if the caverphones of these strings are identical, <code>false</code> otherwise.
9898
*/
9999
public boolean isCaverphoneEqual(String str1, String str2) {
100100
return this.caverphone(str1).equals(this.caverphone(str2));

src/main/java/org/apache/commons/codec/language/DoubleMetaphone.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ public String encode(String value) {
217217
*
218218
* @param value1 The left-hand side of the encoded {@link String#equals(Object)}.
219219
* @param value2 The right-hand side of the encoded {@link String#equals(Object)}.
220-
* @return <code>true</code> if the encoded <code>String</code>s are equal;
220+
* @return {@code true} if the encoded <code>String</code>s are equal;
221221
* <code>false</code> otherwise.
222222
* @see #isDoubleMetaphoneEqual(String,String,boolean)
223223
*/
@@ -231,8 +231,8 @@ public boolean isDoubleMetaphoneEqual(String value1, String value2) {
231231
*
232232
* @param value1 The left-hand side of the encoded {@link String#equals(Object)}.
233233
* @param value2 The right-hand side of the encoded {@link String#equals(Object)}.
234-
* @param alternate use the alternate value if <code>true</code>.
235-
* @return <code>true</code> if the encoded <code>String</code>s are equal;
234+
* @param alternate use the alternate value if {@code true}.
235+
* @return {@code true} if the encoded <code>String</code>s are equal;
236236
* <code>false</code> otherwise.
237237
*/
238238
public boolean isDoubleMetaphoneEqual(String value1,
@@ -896,7 +896,7 @@ private boolean isVowel(char ch) {
896896

897897
/**
898898
* Determines whether or not the value starts with a silent letter. It will
899-
* return <code>true</code> if the value starts with any of 'GN', 'KN',
899+
* return {@code true} if the value starts with any of 'GN', 'KN',
900900
* 'PN', 'WR' or 'PS'.
901901
*/
902902
private boolean isSilentStart(String value) {

src/main/java/org/apache/commons/codec/language/Metaphone.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ public String encode(String pString) {
385385
*
386386
* @param str1 First of two strings to compare
387387
* @param str2 Second of two strings to compare
388-
* @return <code>true</code> if the metaphones of these strings are identical,
388+
* @return {@code true} if the metaphones of these strings are identical,
389389
* <code>false</code> otherwise.
390390
*/
391391
public boolean isMetaphoneEqual(String str1, String str2) {

src/main/java/org/apache/commons/codec/language/Nysiis.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ public class Nysiis implements StringEncoder {
9595
*
9696
* @param c
9797
* the character to test
98-
* @return <code>true</code> if the character is a vowel, <code>false</code> otherwise
98+
* @return {@code true} if the character is a vowel, <code>false</code> otherwise
9999
*/
100100
private static boolean isVowel(final char c) {
101101
return c == 'A' || c == 'E' || c == 'I' || c == 'O' || c == 'U';
@@ -182,7 +182,7 @@ public Nysiis() {
182182
* Create an instance of the {@link Nysiis} encoder with the specified strict mode:
183183
*
184184
* <ul>
185-
* <li><code>true</code>: encoded strings have a maximum length of 6</li>
185+
* <li>{@code true}: encoded strings have a maximum length of 6</li>
186186
* <li><code>false</code>: encoded strings may have arbitrary length</li>
187187
* </ul>
188188
*
@@ -229,7 +229,7 @@ public String encode(String pString) {
229229
/**
230230
* Indicates the strict mode for this {@link Nysiis} encoder.
231231
*
232-
* @return <code>true</code> if the encoder is configured for strict mode, <code>false</code> otherwise
232+
* @return {@code true} if the encoder is configured for strict mode, <code>false</code> otherwise
233233
*/
234234
public boolean isStrict() {
235235
return this.strict;

0 commit comments

Comments
 (0)