-
Notifications
You must be signed in to change notification settings - Fork 74
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
Eliminate warnings. #223
Eliminate warnings. #223
Conversation
{ | ||
throw new IllegalArgumentException( | ||
"Attempted to skip a negative number of characters."); | ||
} |
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.
I needed to ensure that the input value was not a very large negative number. The parent class throws an IllegalArgumentException for any negative value, so it made sense to include that here too.
Updated some SDK code to avoid warning messages from code scanning tools. This includes a change to the StringReader#skip method, which now explicitly checks for negative values. JiraIssue: DS-48860
e6a6088
to
d5c2e1f
Compare
I've left details about testing this change on Jira. |
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.
These changes look fine to me.
Updated some SDK code to avoid warning messages from code scanning tools. This includes a change to the StringReader#skip method, which now explicitly checks for negative values.
JiraIssue: DS-48860