Skip to content

Commit f965e93

Browse files
committed
Fix compilation with Java 11
1 parent 7b3c481 commit f965e93

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lucene/test-framework/src/test/org/apache/lucene/tests/mockfile/TestWindowsFS.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ public void testFileName() {
200200
// We need at least 2 chars before the special character, because resolving a drive
201201
// letter (C:) or a path starting with "/" will not fail on real Windows.
202202
fileName =
203-
RandomStrings.randomAsciiLettersOfLength(r, r.nextInt(2, 10))
203+
RandomStrings.randomAsciiLettersOfLength(r, r.nextInt(8) + 2)
204204
+ reservedCharacters[r.nextInt(reservedCharacters.length)]
205205
+ RandomStrings.randomAsciiLettersOfLength(r, 1 + r.nextInt(9));
206206
} else {

0 commit comments

Comments
 (0)