Skip to content

Conversation

@argan
Copy link

@argan argan commented Jun 11, 2015

No description provided.

@garcia-jj
Copy link
Contributor

The prefix is is only valid for primitive boolean according Java Language Specification. So the 4th sentence is not valid, because Boolean wrapper should use get prefix.

boolean isXpto() is valid.
Boolean getXpto() is valid.
Boolean isXpto() is not valid.

If you want to make micro optimization you can use element.getParameterTypes().length == 0 sentence as the 1st because is more faster than String.startsWith.

@garcia-jj
Copy link
Contributor

@jonasabreu What you think about this pull request? I have a code that depends on this.

Thank you.

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