mirror of
https://github.com/apache/maven-mvnd.git
synced 2025-09-27 16:08:21 +00:00
Use 0-sized array in toArray
This commit is contained in:
@@ -331,7 +331,7 @@ public enum Environment {
|
||||
options.toArray(prefixes);
|
||||
prefixes[options.size()] = "-D" + property + "=";
|
||||
} 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));
|
||||
}
|
||||
|
Reference in New Issue
Block a user