Skip to content

Fix static check warnings. #1696

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

Merged
merged 2 commits into from
May 1, 2025
Merged

Fix static check warnings. #1696

merged 2 commits into from
May 1, 2025

Conversation

vbabanin
Copy link
Member

@vbabanin vbabanin commented Apr 30, 2025

This PR fixes static analysis warnings introduced in JAVA-5800. Also renamed variables in related methods - using "b" for a long/int values was unclear and has been replaced with more descriptive names.

JAVA-5800

@vbabanin vbabanin assigned stIncMale and unassigned stIncMale Apr 30, 2025
@vbabanin vbabanin requested a review from stIncMale April 30, 2025 00:05
@vbabanin vbabanin self-assigned this Apr 30, 2025
Copy link
Member

@stIncMale stIncMale left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is still

> Task :bson:javadoc
/Users/valentin.kovalenko/Documents/programming/projects/mongo-java-driver/bson/src/main/org/bson/io/OutputBuffer.java:200: warning: no comment
    protected int writeCharacters(final String str, final boolean checkForNullCharacters) {

This warning was introduced by JAVA-5816.

@vbabanin
Copy link
Member Author

vbabanin commented Apr 30, 2025

There is still

> Task :bson:javadoc
/Users/valentin.kovalenko/Documents/programming/projects/mongo-java-driver/bson/src/main/org/bson/io/OutputBuffer.java:200: warning: no comment
    protected int writeCharacters(final String str, final boolean checkForNullCharacters) {

This warning was introduced by JAVA-5816.

Thanks! I am planning to address it in a separate PR #1697 to keep PRs and commits linked to separate tickets.

Copy link
Member

@rozza rozza left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@vbabanin vbabanin merged commit 681a437 into mongodb:main May 1, 2025
14 of 54 checks passed
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