Skip to content

Commit

Permalink
Annotate java.util.random. (#89)
Browse files Browse the repository at this point in the history
  • Loading branch information
cpovirk authored Oct 7, 2024
1 parent 3e19ce2 commit a14a10e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@

package java.util.random;

import org.jspecify.annotations.NullMarked;

import java.math.BigInteger;
import java.security.SecureRandom;
import java.util.Objects;
Expand Down Expand Up @@ -106,6 +108,7 @@
* @since 17
*
*/
@NullMarked
public interface RandomGenerator {
/**
* Returns an instance of {@link RandomGenerator} that utilizes the
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@

package java.util.random;

import org.jspecify.annotations.NullMarked;

import jdk.internal.random.L128X1024MixRandom;
import jdk.internal.random.L128X128MixRandom;
import jdk.internal.random.L128X256MixRandom;
Expand Down Expand Up @@ -112,6 +114,7 @@
* @see java.util.random
*
*/
@NullMarked
public final class RandomGeneratorFactory<T extends RandomGenerator> {

private static final String DEFAULT_ALGORITHM = "L32X64MixRandom";
Expand Down

0 comments on commit a14a10e

Please sign in to comment.