Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[#390] Support some more primitive types #781

Merged
merged 1 commit into from
Feb 6, 2019
Merged

[#390] Support some more primitive types #781

merged 1 commit into from
Feb 6, 2019

Conversation

dmlloyd
Copy link
Member

@dmlloyd dmlloyd commented Feb 6, 2019

No description provided.

} else if (fieldClass == double.class) {
gct.addField(leaf = new DoubleConfigType(field.getName(), gct, consume, defaultValue.equals(ConfigItem.NO_DEFAULT) ? "0" : defaultValue));
} else if (fieldClass == float.class) {
gct.addField(leaf = new FloatConfigType(field.getName(), gct, consume, defaultValue.equals(ConfigItem.NO_DEFAULT) ? "0" : defaultValue));
Copy link
Member

Choose a reason for hiding this comment

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

I know short is not frequently used but while we're at it... ?

Copy link
Member Author

Choose a reason for hiding this comment

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

I'll get there. These are a little tedious though :)

Copy link
Member

@gsmet gsmet left a comment

Choose a reason for hiding this comment

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

Looks good after a quick check that things are consistent.

A bit nervous that we add this code without unit tests but I suppose that's why you create the extension unit test issue.

@dmlloyd dmlloyd merged commit a47bf27 into quarkusio:master Feb 6, 2019
@dmlloyd dmlloyd deleted the config-prim branch February 6, 2019 22:08
@dmlloyd dmlloyd added this to the 0.9.0 milestone Feb 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants