Skip to content
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

Merged
merged 4 commits into from
May 23, 2024
Merged

Eliminate warnings. #223

merged 4 commits into from
May 23, 2024

Conversation

kqarryzada
Copy link
Collaborator

@kqarryzada kqarryzada commented May 17, 2024

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

@kqarryzada kqarryzada self-assigned this May 17, 2024
{
throw new IllegalArgumentException(
"Attempted to skip a negative number of characters.");
}
Copy link
Collaborator Author

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
@kqarryzada kqarryzada changed the title DS-48860: Update warnings Eliminate warnings. May 17, 2024
@kqarryzada
Copy link
Collaborator Author

I've left details about testing this change on Jira.

Copy link

@vyhhuang vyhhuang left a 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.

@kqarryzada kqarryzada merged commit 371487f into master May 23, 2024
10 checks passed
@kqarryzada kqarryzada deleted the DS-48860-update-warnings branch May 23, 2024 21:06
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.

3 participants