Merge pull request #2397 from mmschettler/master

Fix c# client float property default values
This commit is contained in:
wing328 2016-03-17 12:17:47 +08:00
commit ccd4a78514
2 changed files with 3 additions and 3 deletions

View File

@ -435,7 +435,7 @@ public abstract class AbstractCSharpCodegen extends DefaultCodegen implements Co
} else if (p instanceof FloatProperty) {
FloatProperty dp = (FloatProperty) p;
if (dp.getDefault() != null) {
return dp.getDefault().toString();
return String.format("%1$sF", dp.getDefault());
}
} else if (p instanceof IntegerProperty) {
IntegerProperty dp = (IntegerProperty) p;