Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Fix issue 1433 (default decimal literal broken for C#)
  • Loading branch information
John Lilley committed Nov 13, 2018
commit 19bee65f4dc148725ca18d77cc891e36bad69acf
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