mirror of
https://github.com/apache/maven-mvnd.git
synced 2026-01-13 07:04:14 +08: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