Change List to Collection
This commit is contained in:
parent
3c5b1fde8f
commit
779e6d4b79
1 changed files with 2 additions and 1 deletions
|
@ -20,6 +20,7 @@ import rife.tools.StringUtils;
|
|||
|
||||
import java.io.Serial;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collection;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
|
@ -54,7 +55,7 @@ public class JvmOptions extends ArrayList<String> {
|
|||
*
|
||||
* @return this list of options
|
||||
*/
|
||||
public JvmOptions enableNativeAccess(List<String> modules) {
|
||||
public JvmOptions enableNativeAccess(Collection<String> modules) {
|
||||
add("--enable-native-access=" + StringUtils.join(modules, ","));
|
||||
return this;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue