| | |
| | | * |
| | | * |
| | | * Copyright 2006-2010 Sun Microsystems, Inc. |
| | | * Portions Copyright 2011-2014 ForgeRock AS |
| | | * Portions Copyright 2011-2015 ForgeRock AS |
| | | */ |
| | | package org.opends.server.util; |
| | | |
| | | import static org.opends.messages.UtilityMessages.*; |
| | | import static org.opends.server.util.ServerConstants.*; |
| | | |
| | | import java.io.*; |
| | | import java.lang.reflect.InvocationTargetException; |
| | | import java.net.InetAddress; |
| | |
| | | import com.forgerock.opendj.cli.Argument; |
| | | import com.forgerock.opendj.cli.ArgumentException; |
| | | |
| | | import static org.opends.messages.UtilityMessages.*; |
| | | import static org.opends.server.util.ServerConstants.*; |
| | | |
| | | /** |
| | | * This class defines a number of static utility methods that may be used |
| | | * throughout the server. Note that because of the frequency with which these |
| | |
| | | * |
| | | * @return An array list containing the contents of the provided array. |
| | | */ |
| | | public static ArrayList<String> arrayToList(String[] stringArray) |
| | | public static ArrayList<String> arrayToList(String... stringArray) |
| | | { |
| | | if (stringArray == null) |
| | | { |
| | |
| | | { |
| | | stringList.add(s); |
| | | } |
| | | |
| | | return stringList; |
| | | } |
| | | |