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

Lang 1134 #87

Closed
wants to merge 5 commits into from
Closed

Lang 1134 #87

wants to merge 5 commits into from

Conversation

Lady-Stardust
Copy link

LANG-1134

@coveralls
Copy link

Coverage Status

Coverage increased (+0.04%) to 93.32% when pulling f9c3131 on Lady-Stardust:LANG-1134 into 71d7c32 on apache:master.

@britter
Copy link
Member

britter commented May 11, 2015

Very nice, please see my comments.

* @since 3.4
*/
public static void notNaN(final double value, final String message, final Object... values) {
if (value != value) {
Copy link
Member

Choose a reason for hiding this comment

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

Better use Double.isNaN(double) here. Reads better, IMHO.

Copy link
Author

Choose a reason for hiding this comment

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

Okay, I wanted to avoid having more method calls as the Validate methods might get called often in a program.
Should I edit it and make a new pull request? How does it work?

Copy link
Member

Choose a reason for hiding this comment

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

Hello @Lady-Stardust,

calling a method is not that expensive (approximately 2ns), so we can live with that ;-)

You can simply add more commits to your branch and github will update the PR when you push your changes to your fork. Thank you!

@Lady-Stardust
Copy link
Author

Ok I pushed the changes to my fork. I made the changes you said, except for removing the "Obj" suffix because it wouldn't compile anymore.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.05%) to 93.32% when pulling 41e8375 on Lady-Stardust:LANG-1134 into 71d7c32 on apache:master.

@britter
Copy link
Member

britter commented May 18, 2015

Very nice, I'll have a look later this week!

@britter
Copy link
Member

britter commented May 18, 2015

@Lady-Stardust, what is the name you want to be listed with in changes.xml?

@Lady-Stardust
Copy link
Author

I don't want to be listed

@asfgit asfgit closed this in 77d187e Apr 24, 2016
asfgit pushed a commit that referenced this pull request Apr 24, 2016
…berUtils.isNumber()

This closes github #87 thanks to pbrose
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.

3 participants