Skip to content

Conversation

@marcphilipp
Copy link
Member

@marcphilipp marcphilipp commented Jul 10, 2025

  • Use text blocks and String.formatted and forbid String.format
  • Hide utility class constructors
  • Order modifiers canonically
  • Avoid potential NPEs for String.equals() calls
  • Declare serialVersionUID explicitly
  • Remove empty statement

I hereby agree to the terms of the JUnit Contributor License Agreement.


Definition of Done

@marcphilipp marcphilipp self-assigned this Jul 10, 2025
@marcphilipp marcphilipp changed the base branch from main to marc/error-prone-checks July 10, 2025 09:54
marcphilipp added a commit that referenced this pull request Jul 10, 2025
We used OpenRewrite as a migration aid when bumping the Java baseline
from 8 to 17. After evaluating its use for ongoing static analysis, it
doesn't provide enough added value to justify maintaining configuration
etc. for another tool. In #4748, additional Checkstyle rules will be
enabled instead which address almost all issues found by OpenRewrite's
recipes. Moreover, openrewrite/rewrite-gradle-plugin#212 prevents us
from using it in our build.
@marcphilipp marcphilipp mentioned this pull request Jul 10, 2025
6 tasks
Base automatically changed from marc/error-prone-checks to main July 10, 2025 10:16
@Pankraz76
Copy link
Contributor

nice to see this, thanks for the increment.

@marcphilipp marcphilipp merged commit a3d2a2b into main Jul 10, 2025
14 checks passed
@marcphilipp marcphilipp deleted the marc/stricter-checkstyle branch July 10, 2025 10:39
@Pankraz76
Copy link
Contributor

Pankraz76 commented Jul 11, 2025

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.

4 participants