public class DeprecationUtils extends Object
| Constructor and Description |
|---|
DeprecationUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
renameDeprecatedKeys(State state,
String currentKey,
List<String> deprecatedKeys)
Sets an option in a
State to the first available value of a list of deprecatedKeys. |
public static void renameDeprecatedKeys(State state, String currentKey, List<String> deprecatedKeys)
State to the first available value of a list of deprecatedKeys. For example, if
an option "optiona" was previously called "optionb" or "optionc",
calling renameDeprecatedKeys(State, String, List) will search for the first available key-value pair
with key optiona, optionb, or optionc, and set optiona to that value.