Skip to content

Commit

Permalink
Update EnumSetting.java
Browse files Browse the repository at this point in the history
  • Loading branch information
mcchampions committed Oct 5, 2024
1 parent b383ca5 commit 076c963
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,16 +55,14 @@ public T getAsEnumConstant() {

@Override
public boolean validateInput(String input) {
if (!super.validateInput(input)) {
return false;
} else {
if (super.validateInput(input)) {
for (Enum<T> value : getAllowedValues()) {
if (value.name().equals(input)) {
return true;
}
}

return false;
}
return false;
}
}

0 comments on commit 076c963

Please sign in to comment.