Skip to content
Open
Show file tree
Hide file tree
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 @@ -24,12 +24,16 @@
*/
package java.io;

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

/**
* The Character Encoding is not supported.
*
* @author Asmus Freytag
* @since 1.1
*/
@NullMarked
public class UnsupportedEncodingException
extends IOException
{
Expand All @@ -47,7 +51,7 @@ public UnsupportedEncodingException() {
* Constructs an UnsupportedEncodingException with a detail message.
* @param s Describes the reason for the exception.
*/
public UnsupportedEncodingException(String s) {
public UnsupportedEncodingException(@Nullable String s) {
super(s);
}
}
6 changes: 5 additions & 1 deletion src/java.base/share/classes/java/lang/MatchException.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@

package java.lang;

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

/**
* Thrown to indicate an unexpected failure in pattern matching.
*
Expand Down Expand Up @@ -76,6 +79,7 @@
*
* @since 21
*/
@NullMarked
public final class MatchException extends RuntimeException {
@java.io.Serial
private static final long serialVersionUID = 0L;
Expand All @@ -91,7 +95,7 @@ public final class MatchException extends RuntimeException {
* permitted, and indicates that the cause is nonexistent or
* unknown.)
*/
public MatchException(String message, Throwable cause) {
public MatchException(@Nullable String message, @Nullable Throwable cause) {
super(message, cause);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@

package java.nio.charset;

import org.jspecify.annotations.NullMarked;

/**
* Checked exception thrown when an input byte sequence is not legal for given
Expand All @@ -33,7 +34,7 @@
*
* @since 1.4
*/

@NullMarked
public class MalformedInputException
extends CharacterCodingException
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@

package java.nio.charset;

import org.jspecify.annotations.NullMarked;

/**
* Checked exception thrown when an input character (or byte) sequence
Expand All @@ -33,7 +34,7 @@
*
* @since 1.4
*/

@NullMarked
public class UnmappableCharacterException
extends CharacterCodingException
{
Expand Down
Loading