Skip to content

Commit

Permalink
Cosmetic changes
Browse files Browse the repository at this point in the history
  • Loading branch information
cowwoc committed Dec 12, 2024
1 parent 98f7437 commit ccf3835
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

import java.util.concurrent.Callable;
import java.util.concurrent.ExecutionException;

import static java.util.Objects.requireNonNull;

/**
Expand All @@ -22,8 +23,8 @@ public final class WrappedCheckedException extends RuntimeException
*/
private WrappedCheckedException(String message, Throwable cause)
{
super(requireNonNull(message, "message cannot be null"),
requireNonNull(cause, "cause cannot be null"));
super(requireNonNull(message, "message may not be null"),
requireNonNull(cause, "cause may not be null"));
}

/**
Expand All @@ -34,7 +35,7 @@ private WrappedCheckedException(String message, Throwable cause)
*/
private WrappedCheckedException(Throwable cause)
{
super(requireNonNull(cause, "cause cannot be null"));
super(requireNonNull(cause, "cause may not be null"));
}

/**
Expand Down

0 comments on commit ccf3835

Please sign in to comment.