This is an automated email from the ASF dual-hosted git repository.
ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-io.git
The following commit(s) were added to refs/heads/master by this push:
new 24142f99b Javadoc
24142f99b is described below
commit 24142f99b26b73dda55309644c22a93ae5157869
Author: Gary Gregory <[email protected]>
AuthorDate: Fri Mar 14 16:19:15 2025 -0400
Javadoc
---
src/main/java/org/apache/commons/io/Charsets.java | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/main/java/org/apache/commons/io/Charsets.java
b/src/main/java/org/apache/commons/io/Charsets.java
index fcee24508..891ed798e 100644
--- a/src/main/java/org/apache/commons/io/Charsets.java
+++ b/src/main/java/org/apache/commons/io/Charsets.java
@@ -173,11 +173,12 @@ public static SortedMap<String, Charset>
requiredCharsets() {
}
/**
- * Returns the given Charset or the default Charset if the given Charset
is null.
+ * Returns the given Charset or the {@link Charset#defaultCharset()
default Charset} if the given Charset is null.
*
* @param charset
* A charset or null.
* @return the given Charset or the default Charset if the given Charset
is null
+ * @see Charset#defaultCharset()
*/
public static Charset toCharset(final Charset charset) {
return charset == null ? Charset.defaultCharset() : charset;
@@ -196,11 +197,12 @@ public static Charset toCharset(final Charset charset,
final Charset defaultChar
}
/**
- * Returns a Charset for the named charset. If the name is null, return
the default Charset.
+ * Returns a Charset for the named charset. If the name is null, return
the {@link Charset#defaultCharset() default Charset}.
*
* @param charsetName The name of the requested charset, may be null.
* @return a Charset for the named charset.
* @throws UnsupportedCharsetException If the named charset is unavailable
(unchecked exception).
+ * @see Charset#defaultCharset()
*/
public static Charset toCharset(final String charsetName) throws
UnsupportedCharsetException {
return toCharset(charsetName, Charset.defaultCharset());