Skip to content

Commit

Permalink
dummy generateData return object instaed of string
Browse files Browse the repository at this point in the history
  • Loading branch information
eddmash committed Jun 6, 2018
1 parent 82deb24 commit 6886882
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -103,13 +103,13 @@ public void populate(FieldInterface field) throws FormException {
}
}

private String generateData(String fieldName, View field) throws
private Object generateData(String fieldName, View field) throws
FormException {
try {
if (fieldPopulators.containsKey(fieldName)) {
return String.valueOf(fieldPopulators.get(fieldName).getData(field));
return fieldPopulators.get(fieldName).getData(field);
} else if (classPopulators.containsKey(field.getClass())) {
return String.valueOf(classPopulators.get(field.getClass()).getData(field));
return classPopulators.get(field.getClass()).getData(field);
}
} catch (Exception e) {
// just ignore this and continue proccessing
Expand Down

0 comments on commit 6886882

Please sign in to comment.