Skip to content

Commit 24142f9

Browse files
committed
Javadoc
1 parent 6f0d8ed commit 24142f9

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,11 +173,12 @@ public static SortedMap<String, Charset> requiredCharsets() {
173173
}
174174

175175
/**
176-
* Returns the given Charset or the default Charset if the given Charset is null.
176+
* Returns the given Charset or the {@link Charset#defaultCharset() default Charset} if the given Charset is null.
177177
*
178178
* @param charset
179179
* A charset or null.
180180
* @return the given Charset or the default Charset if the given Charset is null
181+
* @see Charset#defaultCharset()
181182
*/
182183
public static Charset toCharset(final Charset charset) {
183184
return charset == null ? Charset.defaultCharset() : charset;
@@ -196,11 +197,12 @@ public static Charset toCharset(final Charset charset, final Charset defaultChar
196197
}
197198

198199
/**
199-
* Returns a Charset for the named charset. If the name is null, return the default Charset.
200+
* Returns a Charset for the named charset. If the name is null, return the {@link Charset#defaultCharset() default Charset}.
200201
*
201202
* @param charsetName The name of the requested charset, may be null.
202203
* @return a Charset for the named charset.
203204
* @throws UnsupportedCharsetException If the named charset is unavailable (unchecked exception).
205+
* @see Charset#defaultCharset()
204206
*/
205207
public static Charset toCharset(final String charsetName) throws UnsupportedCharsetException {
206208
return toCharset(charsetName, Charset.defaultCharset());

0 commit comments

Comments
 (0)