Skip to content

Commit 9431b9d

Browse files
committed
Fix compile error
1 parent 4f73495 commit 9431b9d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/src/main/java/org/apache/cloudstack/vm/UnmanagedVMsManagerImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1471,7 +1471,7 @@ protected void checkExtraParamsAllowed(String extraParams) {
14711471
.stream()
14721472
.filter(x -> x.startsWith("-"))
14731473
.map(s -> s.replaceFirst("^-+", "").trim()) //Remove the starting hyphens as in --X or -x
1474-
.toList();
1474+
.collect(Collectors.toList());
14751475
for (String param : sanitizedParams) {
14761476
if (!allowedParams.contains(param)) {
14771477
throw new ServerApiException(ApiErrorCode.PARAM_ERROR,

0 commit comments

Comments
 (0)