mirror of
https://github.com/apache/maven-mvnd.git
synced 2025-09-28 00:22:03 +00:00
Use 0-sized array in toArray
This commit is contained in:
@@ -331,7 +331,7 @@ public enum Environment {
|
|||||||
options.toArray(prefixes);
|
options.toArray(prefixes);
|
||||||
prefixes[options.size()] = "-D" + property + "=";
|
prefixes[options.size()] = "-D" + property + "=";
|
||||||
} else {
|
} else {
|
||||||
prefixes = options.toArray(new String[options.size()]);
|
prefixes = options.toArray(new String[0]);
|
||||||
}
|
}
|
||||||
return args.stream().anyMatch(arg -> Stream.of(prefixes).anyMatch(arg::startsWith));
|
return args.stream().anyMatch(arg -> Stream.of(prefixes).anyMatch(arg::startsWith));
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user