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

Fix sonar warnings for DefaultTypeConverter #298

Merged

Conversation

sepe81
Copy link
Contributor

@sepe81 sepe81 commented Dec 18, 2018

No description provided.

@coveralls
Copy link

coveralls commented Dec 18, 2018

Coverage Status

Coverage increased (+0.04%) to 46.935% when pulling d09d3dc on sepe81:fix-sonar-warnings-for-DefaultTypeConverter into 699f5d6 on apache:master.

I insinuate that the non primitive BigInteger and BigDecimal types
should also return default values for null input.

Rename the map to `baseTypeDefaults for better understanding and
remove the check for `isPrimitive` b/c this seemed to be kind of optimization
but breaked the check for included non-primitive types.

B/c the unit tests run successfully, we can use the existing default fields ZERO.
@lukaszlenart
Copy link
Member

If no objections LGTM 👍

@aleksandr-m aleksandr-m merged commit 83a0927 into apache:master Dec 31, 2018
@sepe81 sepe81 deleted the fix-sonar-warnings-for-DefaultTypeConverter branch December 31, 2018 13:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants