Skip to content

Commit 4f05408

Browse files
committed
Javadoc
1 parent 13d65a1 commit 4f05408

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

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

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ public class Charsets {
141141
*
142142
* @param charset
143143
* A charset or null.
144-
* @return the given Charset or the default Charset if the given Charset is null
144+
* @return the given Charset or the default Charset if the given Charset is null.
145145
*/
146146
public static Charset toCharset(final Charset charset) {
147147
return charset == null ? Charset.defaultCharset() : charset;
@@ -150,11 +150,9 @@ public static Charset toCharset(final Charset charset) {
150150
/**
151151
* Returns a Charset for the named charset. If the name is null, return the default Charset.
152152
*
153-
* @param charset
154-
* The name of the requested charset, may be null.
153+
* @param charset The name of the requested charset, may be null.
155154
* @return a Charset for the named charset
156-
* @throws java.nio.charset.UnsupportedCharsetException
157-
* If the named charset is unavailable
155+
* @throws java.nio.charset.UnsupportedCharsetException If the named charset is unavailable
158156
*/
159157
public static Charset toCharset(final String charset) {
160158
return charset == null ? Charset.defaultCharset() : Charset.forName(charset);

0 commit comments

Comments
 (0)