Skip to content

Commit 759b370

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

5 files changed

Lines changed: 33 additions & 33 deletions

File tree

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

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

3636
/**
37-
* Constructs a new exception with <code>null</code> as its detail message. The cause is not initialized, and may
37+
* Constructs a new exception with {@code null} 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 DecoderException(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</code>
68+
* The cause which is saved for later retrieval by the {@link #getCause()} method. A {@code null}
6969
* value is permitted, and indicates that the cause is nonexistent or unknown.
7070
* @since 1.4
7171
*/
@@ -79,7 +79,7 @@ public DecoderException(String message, 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</code>
82+
* The cause which is saved for later retrieval by the {@link #getCause()} method. A {@code null}
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/EncoderException.java

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

3737
/**
38-
* Constructs a new exception with <code>null</code> as its detail message. The cause is not initialized, and may
38+
* Constructs a new exception with {@code null} as its detail message. The cause is not initialized, and may
3939
* subsequently be initialized by a call to {@link #initCause}.
4040
*
4141
* @since 1.4
@@ -66,7 +66,7 @@ public EncoderException(String message) {
6666
* @param message
6767
* The detail message which is saved for later retrieval by the {@link #getMessage()} method.
6868
* @param cause
69-
* The cause which is saved for later retrieval by the {@link #getCause()} method. A <code>null</code>
69+
* The cause which is saved for later retrieval by the {@link #getCause()} method. A {@code null}
7070
* value is permitted, and indicates that the cause is nonexistent or unknown.
7171
* @since 1.4
7272
*/
@@ -80,7 +80,7 @@ public EncoderException(String message, Throwable cause) {
8080
* This constructor is useful for exceptions that are little more than wrappers for other throwables.
8181
*
8282
* @param cause
83-
* The cause which is saved for later retrieval by the {@link #getCause()} method. A <code>null</code>
83+
* The cause which is saved for later retrieval by the {@link #getCause()} method. A {@code null}
8484
* value is permitted, and indicates that the cause is nonexistent or unknown.
8585
* @since 1.4
8686
*/

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</code> or empty (size 0.)
214+
* Returns <code>true</code> 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</code> or empty (size 0.)
218+
* @return <code>true</code> 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/StringUtils.java

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ private static byte[] getBytes(String string, Charset charset) {
5656
* byte array.
5757
*
5858
* @param string
59-
* the String to encode, may be <code>null</code>
60-
* @return encoded bytes, or <code>null</code> if the input string was <code>null</code>
59+
* the String to encode, may be {@code null}
60+
* @return encoded bytes, or {@code null} if the input string was {@code null}
6161
* @throws NullPointerException
6262
* Thrown if {@link Charsets#ISO_8859_1} is not initialized, which should never happen since it is
6363
* required by the Java platform specification.
@@ -79,10 +79,10 @@ public static byte[] getBytesIso8859_1(String string) {
7979
* </p>
8080
*
8181
* @param string
82-
* the String to encode, may be <code>null</code>
82+
* the String to encode, may be {@code null}
8383
* @param charsetName
8484
* The name of a required {@link java.nio.charset.Charset}
85-
* @return encoded bytes, or <code>null</code> if the input string was <code>null</code>
85+
* @return encoded bytes, or {@code null} if the input string was {@code null}
8686
* @throws IllegalStateException
8787
* Thrown when a {@link UnsupportedEncodingException} is caught, which should never happen for a
8888
* required charset name.
@@ -105,8 +105,8 @@ public static byte[] getBytesUnchecked(String string, String charsetName) {
105105
* array.
106106
*
107107
* @param string
108-
* the String to encode, may be <code>null</code>
109-
* @return encoded bytes, or <code>null</code> if the input string was <code>null</code>
108+
* the String to encode, may be {@code null}
109+
* @return encoded bytes, or {@code null} if the input string was {@code null}
110110
* @throws NullPointerException
111111
* Thrown if {@link Charsets#US_ASCII} is not initialized, which should never happen since it is
112112
* required by the Java platform specification.
@@ -123,8 +123,8 @@ public static byte[] getBytesUsAscii(String string) {
123123
* array.
124124
*
125125
* @param string
126-
* the String to encode, may be <code>null</code>
127-
* @return encoded bytes, or <code>null</code> if the input string was <code>null</code>
126+
* the String to encode, may be {@code null}
127+
* @return encoded bytes, or {@code null} if the input string was {@code null}
128128
* @throws NullPointerException
129129
* Thrown if {@link Charsets#UTF_16} is not initialized, which should never happen since it is
130130
* required by the Java platform specification.
@@ -141,8 +141,8 @@ public static byte[] getBytesUtf16(String string) {
141141
* array.
142142
*
143143
* @param string
144-
* the String to encode, may be <code>null</code>
145-
* @return encoded bytes, or <code>null</code> if the input string was <code>null</code>
144+
* the String to encode, may be {@code null}
145+
* @return encoded bytes, or {@code null} if the input string was {@code null}
146146
* @throws NullPointerException
147147
* Thrown if {@link Charsets#UTF_16BE} is not initialized, which should never happen since it is
148148
* required by the Java platform specification.
@@ -159,8 +159,8 @@ public static byte[] getBytesUtf16Be(String string) {
159159
* array.
160160
*
161161
* @param string
162-
* the String to encode, may be <code>null</code>
163-
* @return encoded bytes, or <code>null</code> if the input string was <code>null</code>
162+
* the String to encode, may be {@code null}
163+
* @return encoded bytes, or {@code null} if the input string was {@code null}
164164
* @throws NullPointerException
165165
* Thrown if {@link Charsets#UTF_16LE} is not initialized, which should never happen since it is
166166
* required by the Java platform specification.
@@ -177,8 +177,8 @@ public static byte[] getBytesUtf16Le(String string) {
177177
* array.
178178
*
179179
* @param string
180-
* the String to encode, may be <code>null</code>
181-
* @return encoded bytes, or <code>null</code> if the input string was <code>null</code>
180+
* the String to encode, may be {@code null}
181+
* @return encoded bytes, or {@code null} if the input string was {@code null}
182182
* @throws NullPointerException
183183
* Thrown if {@link Charsets#UTF_8} is not initialized, which should never happen since it is
184184
* required by the Java platform specification.
@@ -202,7 +202,7 @@ private static IllegalStateException newIllegalStateException(String charsetName
202202
* @param charset
203203
* The {@link Charset} to encode the {@code String}
204204
* @return A new <code>String</code> decoded from the specified array of bytes using the given charset,
205-
* or <code>null</code> if the input byte array was <code>null</code>.
205+
* or {@code null} if the input byte array was {@code null}.
206206
* @throws NullPointerException
207207
* Thrown if {@link Charsets#UTF_8} is not initialized, which should never happen since it is
208208
* required by the Java platform specification.
@@ -219,11 +219,11 @@ private static String newString(byte[] bytes, Charset charset) {
219219
* </p>
220220
*
221221
* @param bytes
222-
* The bytes to be decoded into characters, may be <code>null</code>
222+
* The bytes to be decoded into characters, may be {@code null}
223223
* @param charsetName
224224
* The name of a required {@link java.nio.charset.Charset}
225225
* @return A new <code>String</code> decoded from the specified array of bytes using the given charset,
226-
* or <code>null</code> if the input byte array was <code>null</code>.
226+
* or {@code null} if the input byte array was {@code null}.
227227
* @throws IllegalStateException
228228
* Thrown when a {@link UnsupportedEncodingException} is caught, which should never happen for a
229229
* required charset name.
@@ -245,9 +245,9 @@ public static String newString(byte[] bytes, String charsetName) {
245245
* Constructs a new <code>String</code> by decoding the specified array of bytes using the ISO-8859-1 charset.
246246
*
247247
* @param bytes
248-
* The bytes to be decoded into characters, may be <code>null</code>
248+
* The bytes to be decoded into characters, may be {@code null}
249249
* @return A new <code>String</code> decoded from the specified array of bytes using the ISO-8859-1 charset, or
250-
* <code>null</code> if the input byte array was <code>null</code>.
250+
* {@code null} if the input byte array was {@code null}.
251251
* @throws NullPointerException
252252
* Thrown if {@link Charsets#ISO_8859_1} is not initialized, which should never happen since it is
253253
* required by the Java platform specification.
@@ -263,7 +263,7 @@ public static String newStringIso8859_1(byte[] bytes) {
263263
* @param bytes
264264
* The bytes to be decoded into characters
265265
* @return A new <code>String</code> decoded from the specified array of bytes using the US-ASCII charset,
266-
* or <code>null</code> if the input byte array was <code>null</code>.
266+
* or {@code null} if the input byte array was {@code null}.
267267
* @throws NullPointerException
268268
* Thrown if {@link Charsets#US_ASCII} is not initialized, which should never happen since it is
269269
* required by the Java platform specification.
@@ -279,7 +279,7 @@ public static String newStringUsAscii(byte[] bytes) {
279279
* @param bytes
280280
* The bytes to be decoded into characters
281281
* @return A new <code>String</code> decoded from the specified array of bytes using the UTF-16 charset
282-
* or <code>null</code> if the input byte array was <code>null</code>.
282+
* or {@code null} if the input byte array was {@code null}.
283283
* @throws NullPointerException
284284
* Thrown if {@link Charsets#UTF_16} is not initialized, which should never happen since it is
285285
* required by the Java platform specification.
@@ -295,7 +295,7 @@ public static String newStringUtf16(byte[] bytes) {
295295
* @param bytes
296296
* The bytes to be decoded into characters
297297
* @return A new <code>String</code> decoded from the specified array of bytes using the UTF-16BE charset,
298-
* or <code>null</code> if the input byte array was <code>null</code>.
298+
* or {@code null} if the input byte array was {@code null}.
299299
* @throws NullPointerException
300300
* Thrown if {@link Charsets#UTF_16BE} is not initialized, which should never happen since it is
301301
* required by the Java platform specification.
@@ -311,7 +311,7 @@ public static String newStringUtf16Be(byte[] bytes) {
311311
* @param bytes
312312
* The bytes to be decoded into characters
313313
* @return A new <code>String</code> decoded from the specified array of bytes using the UTF-16LE charset,
314-
* or <code>null</code> if the input byte array was <code>null</code>.
314+
* or {@code null} if the input byte array was {@code null}.
315315
* @throws NullPointerException
316316
* Thrown if {@link Charsets#UTF_16LE} is not initialized, which should never happen since it is
317317
* required by the Java platform specification.
@@ -327,7 +327,7 @@ public static String newStringUtf16Le(byte[] bytes) {
327327
* @param bytes
328328
* The bytes to be decoded into characters
329329
* @return A new <code>String</code> decoded from the specified array of bytes using the UTF-8 charset,
330-
* or <code>null</code> if the input byte array was <code>null</code>.
330+
* or {@code null} if the input byte array was {@code null}.
331331
* @throws NullPointerException
332332
* Thrown if {@link Charsets#UTF_8} is not initialized, which should never happen since it is
333333
* required by the Java platform specification.

src/main/java/org/apache/commons/codec/net/RFC1522Codec.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ protected String encodeText(final String text, final String charsetName)
127127
* {@link #doEncoding(byte [])} method of a concrete class to perform the specific decoding.
128128
*
129129
* @param text a string to decode
130-
* @return A new decoded String or <code>null</code> if the input is <code>null</code>.
130+
* @return A new decoded String or {@code null} if the input is {@code null}.
131131
*
132132
* @throws DecoderException thrown if there is an error condition during the decoding
133133
* process.

0 commit comments

Comments
 (0)