Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

8270490: Charset.forName() taking fallback default value #6045

Closed
wants to merge 4 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/java.base/share/classes/java/nio/charset/Charset.java
Original file line number Diff line number Diff line change
@@ -538,11 +538,11 @@ public static Charset forName(String charsetName) {
*
* @param fallback
* fallback charset in case the charset object for the named
* charset is not available
* charset is not available. May be {@code null}
*
* @return A charset object for the named charset, or {@code fallback}
* in case the charset object for the named charset is not
* available. May be {@code null}
* available.
*
* @throws IllegalCharsetNameException
* If the given charset name is illegal