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;
} |
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