Skip to content

Conversation

@Pankraz76
Copy link

@Pankraz76 Pankraz76 commented Dec 17, 2025

MINOR: Add SanityCheck #21165 [S3599]

According to @mjsax:

  • Avoid double-brace initialization

Apply convention principle for:

https://docs.openrewrite.org/recipes/staticanalysis/nodoublebraceinitialization

Kindly asking, if this is any good?

Thanks for effort given.

);
}

private static boolean matchingTopic(ShareAcknowledgeResponseData.ShareAcknowledgeTopicResponse previousTopic, TopicIdPartition currentTopic) {
Copy link
Author

Choose a reason for hiding this comment

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

this now being the only one unused.

Asking to include here to make, or dedicate/extract?

Sanity Check made to be generic and still individual.

id 'org.openrewrite.rewrite' version '7.22.0' apply false
id 'org.owasp.dependencycheck' version '12.1.8'
id 'org.nosphere.apache.rat' version "0.8.1"
id "io.swagger.core.v3.swagger-gradle-plugin" version "${swaggerVersion}"
Copy link
Author

Choose a reason for hiding this comment

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

if desired will undo.

Copy link
Member

Choose a reason for hiding this comment

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

Thanks for the cleanup. Like it.

id 'com.gradleup.shadow' version '8.3.9' apply false
id 'io.swagger.core.v3.swagger-gradle-plugin' version "${swaggerVersion}"
id 'org.nosphere.apache.rat' version '0.8.1'
id 'org.openrewrite.rewrite' version '7.22.0' apply false
Copy link
Author

Choose a reason for hiding this comment

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

just wanted to align and give natural order.

Copy link
Member

Choose a reason for hiding this comment

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

If I read this correctly, org.openrewrite.rewrite is newly added? Others are just reordered.

I am not familiar with this package. Curious to hear from others about it.

Copy link
Author

@Pankraz76 Pankraz76 Dec 17, 2025

Choose a reason for hiding this comment

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

correct.
This versatile SCA tool is already running in checkstyle and spotless.

Highly welcome any feedback, thx.

@Pankraz76 Pankraz76 marked this pull request as ready for review December 17, 2025 17:29
@Pankraz76 Pankraz76 force-pushed the fix-NoDoubleBraceInitialization-pr branch from 47374c7 to 247a78a Compare December 17, 2025 18:43
@Pankraz76 Pankraz76 requested a review from mjsax December 17, 2025 18:44
@mjsax mjsax added ci-approved and removed triage PRs from the community labels Dec 17, 2025
@mjsax
Copy link
Member

mjsax commented Dec 17, 2025

@mumrah @chia7712 -- Any thought on this PR?

…apache.kafka.openrewrite.SanityCheck` apache#21165

Signed-off-by: Vincent Potucek <[email protected]>
@Pankraz76
Copy link
Author

@Pankraz76 Pankraz76 changed the title MINOR: [S3599] Consider NoDoubleBraceInitialization Introduce org.apache.kafka.openrewrite.SanityCheck #21165 MINOR: Add SanityCheck#NoDoubleBraceInitialization #21165 [S3599] Jan 8, 2026
@Pankraz76 Pankraz76 changed the title MINOR: Add SanityCheck#NoDoubleBraceInitialization #21165 [S3599] MINOR: Add SanityCheck #21165 [S3599] Jan 8, 2026
@mjsax
Copy link
Member

mjsax commented Jan 8, 2026

@chia7712 @ijuma Any thoughts on this PR?

@Pankraz76
Copy link
Author

@Pankraz76 Pankraz76 closed this Jan 9, 2026
Pankraz76 pushed a commit to Pankraz76/kafka that referenced this pull request Jan 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants