Skip to content

Commit

Permalink
Use unmodifiable list for java options
Browse files Browse the repository at this point in the history
  • Loading branch information
robbavey committed Mar 22, 2022
1 parent 9f688b8 commit 5a095c1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ static List<String> getMandatoryJvmOptions(int javaMajorVersion){
return Arrays.stream(MANDATORY_JVM_OPTIONS)
.map(option -> jvmOptionFromLine(javaMajorVersion, option))
.flatMap(Optional::stream)
.collect(Collectors.toList());
.collect(Collectors.toUnmodifiableList());
}

private List<String> getJvmOptionsFromFile(final Optional<Path> jvmOptionsFile, final int javaMajorVersion) throws IOException, JvmOptionsFileParserException {
Expand Down

0 comments on commit 5a095c1

Please sign in to comment.