-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Checked the length of key for checker framework #583
Conversation
What problem does this code solve? Risks Changes to the API? Will this require a new release? Should the documentation be updated? Does it break the unit tests? Was any code refactored in this commit? Review status Starting 3-day comment window. |
I don't see what this change is adding to the code. The key can not be 0 length at that spot. Also, I would argue that the logic chosen for the check is wrong. I'd argue it should look like this if you feel the check needs to be added if (key.length() == 0 || Character.isLowerCase(key.charAt(0))) {
return null;
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Check is not valid
Thanks for the correction. I agree with you that the length of key cannot be 0 length at that spot. So the logic of the check should be changed to
|
Approval restored. |
Checked the length of key IN JSONObject for Checker Framework