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

[java] InsufficientStringBufferDeclaration: Fix NPE #3486

Merged

Conversation

adangel
Copy link
Member

@adangel adangel commented Aug 21, 2021

... when StringBuilder is used in lambda and if without else

Rule: InsufficientStringBufferDeclaration

Found this in one of the regression reports, e.g. https://chunk.io/pmd/6ba1372f8806483e8fe17a4901bc6823/diff2/openjdk-11/index.html#section-errors
In Patterns.java and IllegalAccessLogger.java

... when StringBuilder is used in lambda and if without else
@adangel adangel added this to the 7.0.0 milestone Aug 21, 2021
@ghost
Copy link

ghost commented Aug 21, 2021

2 Messages
📖 Compared to pmd/7.0.x:
This changeset changes 0 violations,
introduces 0 new violations, 0 new errors and 0 new configuration errors,
removes 0 violations, 2 errors and 0 configuration errors.
Full report
📖 Compared to master:
This changeset changes 30924 violations,
introduces 37959 new violations, 1 new errors and 0 new configuration errors,
removes 138315 violations, 8 errors and 3 configuration errors.
Full report

Generated by 🚫 Danger

Copy link
Member

@oowekyala oowekyala left a comment

Choose a reason for hiding this comment

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

Thanks!

@oowekyala oowekyala merged commit cec8225 into pmd:pmd/7.0.x Sep 18, 2021
@adangel adangel deleted the pmd7-InsufficientStringBufferDeclaration-NPE branch February 25, 2022 14:07
@adangel adangel mentioned this pull request Jan 23, 2023
55 tasks
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.

2 participants