Skip to content
Merged
Show file tree
Hide file tree
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -775,7 +775,7 @@ protected File writeInputStreamToFile(String filename, InputStream in, String te
IOUtils.copy(in, out);
out.close();
} else {
LOGGER.error("can't open '" + templateFile + "' for input, can not write '" + filename + "'");
LOGGER.error("can't open '" + templateFile + "' for input; cannot write '" + filename + "'");
}
return outputFile;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -731,8 +731,8 @@ public String toDefaultValue(Schema p) {
return p.getDefault().toString() + "F";
} else if (ModelUtils.isDoubleSchema(p)) { // double
return p.getDefault().toString() + "D";
} else {
return p.getDefault().toString();
} else { // decimal
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@wheezil please use space instead of tab

Copy link
Contributor Author

@wheezil wheezil Jan 25, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, should be GTG now.
PS: I'll be back to this project pretty soon, just got assigned to some other stuff for a while. I appreciate you keeping my PR moving.

return p.getDefault().toString() + "M";
}
}
} else if (ModelUtils.isIntegerSchema(p)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -404,9 +404,6 @@ public static boolean isFloatSchema(Schema schema) {
}

public static boolean isDoubleSchema(Schema schema) {
if (schema instanceof NumberSchema) {
return true;
}
if (SchemaTypeUtil.NUMBER_TYPE.equals(schema.getType())
&& SchemaTypeUtil.DOUBLE_FORMAT.equals(schema.getFormat())) { // format: double
return true;
Expand Down