Skip to content
Merged
Changes from all commits
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
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@
import java.nio.charset.Charset;
import java.util.Iterator;

import org.jspecify.annotations.NullMarked;
import org.jspecify.annotations.Nullable;

/**
* Charset service-provider class.
Expand Down Expand Up @@ -79,7 +81,7 @@
*
* @see java.nio.charset.Charset
*/

@NullMarked
public abstract class CharsetProvider {

/**
Expand Down Expand Up @@ -109,6 +111,6 @@ protected CharsetProvider() {
* or {@code null} if the named charset
* is not supported by this provider
*/
public abstract Charset charsetForName(String charsetName);
public abstract @Nullable Charset charsetForName(String charsetName);

}
Loading