File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
src/main/java/org/apache/commons/codec Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff 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 );
You can’t perform that action at this time.
0 commit comments