-
Notifications
You must be signed in to change notification settings - Fork 13.8k
check in if clause in LongValue.java #849
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
Conversation
Should be logical(&&) and not bit wise(&)
|
It looks like I deleted my local repository accidentally. Let me know if I have to make this change again. |
|
Thanks für the PR. |
|
okay thanks , so after you merge the code , there are few more things to be changed in those classes , will make the changes shortly. |
|
Since both are booleans, this check is equivalent to |
|
I am relatively new to github, i cant close the pr until you merge the code right? |
|
Hi @sahitya-pavurala , if the PR is merged we will automatically close the PR for you. |
|
Okay, thanks. |
|
I think that the correct thing is to drop the check for not null, because the |
|
I think that the instanceOf should be changed to getClass in the first place. getClass makes more sense since its a equals method and we want both the types to be identical(not allow sub types) |
|
Will squash with the other PR and merge. |
Should be logical(&&) and not bit wise(&)