Skip to content

Commit

Permalink
Fix test to compile with Java 11 after backport of #12286
Browse files Browse the repository at this point in the history
  • Loading branch information
uschindler committed May 15, 2023
1 parent 76e8a42 commit b895c24
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -230,11 +230,11 @@ private Automaton generateRandomAutomaton(boolean hasCycle) {
Automaton a = new Automaton();
List<Integer> lastLevelStates = new ArrayList<>();
int initialState = a.createState();
int maxLevel = random().nextInt(4, 10);
int maxLevel = TestUtil.nextInt(random(), 4, 9);
lastLevelStates.add(initialState);

for (int level = 1; level < maxLevel; level++) {
int numStates = random().nextInt(3, 10);
int numStates = TestUtil.nextInt(random(), 3, 9);
List<Integer> nextLevelStates = new ArrayList<>();

for (int i = 0; i < numStates; i++) {
Expand Down

0 comments on commit b895c24

Please sign in to comment.