Skip to content

Commit

Permalink
Improved code and test cov
Browse files Browse the repository at this point in the history
  • Loading branch information
TalmizAhmed committed Apr 30, 2024
1 parent 790a701 commit 7a3d69e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -104,16 +104,13 @@ public Object[] getEnums() {

@Override
public String[] getEnumNames() {
if (enumNames != null) {
Map<Object, String> map = getEnumPairs();
String[] enumName = map.values().toArray(new String[0]);
return Arrays.stream(enumName)
.map(p -> {
return this.translate("enumNames", p);
})
.toArray(String[]::new);
}
return null;
Map<Object, String> map = getEnumPairs();
String[] enumName = map.values().toArray(new String[0]);
return Arrays.stream(enumName)
.map(p -> {
return this.translate("enumNames", p);
})
.toArray(String[]::new);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,6 @@
"enabled": true,
"readOnly": false,
"enforceEnum": true,
"enumNames": [],
"label": {
"value": "Dropdown",
"visible": true
Expand Down

0 comments on commit 7a3d69e

Please sign in to comment.