This method returns the corresponding warning state for the given string value. @param value The string value to check @return #DEFAULT if not found, or the respective WarningState
(@Nullable final String value)
| 82 | * WarningState |
| 83 | */ |
| 84 | @NotNull |
| 85 | public static WarningState value(@Nullable final String value) { |
| 86 | if (value == null) { |
| 87 | return DEFAULT; |
| 88 | } |
| 89 | WarningState state = values.get(value.toLowerCase()); |
| 90 | if (state == null) { |
| 91 | return DEFAULT; |
| 92 | } |
| 93 | return state; |
| 94 | } |
| 95 | } |
| 96 | |
| 97 | /** |
no test coverage detected