Skip to content

Conversation

@vivek-0509
Copy link
Contributor

Issue #6294:

Add test to kill checkWrappingIndentation pitest mutation in SynchronizedHandler.

Changes:

  • Add testSynchronizedWrapping in IndentationCheckTest
  • Add InputIndentationSynchronizedWrapping.java test input
  • Remove pitest suppression for checkWrappingIndentation mutation

How it works:
Uses basicOffset=4 and lineWrappingIndentation=8 so checkWrappingIndentation expects indent at 16, while checkSynchronizedExpr expects 12. This creates a unique violation only caught by checkWrappingIndentation.

@vivek-0509
Copy link
Contributor Author

CI failed due to a timeout while downloading actions/setup-java@v5.

Copy link
Member

@romani romani left a comment

Choose a reason for hiding this comment

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

Thanks a lot

@romani romani merged commit 8870990 into checkstyle:master Dec 19, 2025
150 of 151 checks passed
@vivek-0509 vivek-0509 deleted the resolvePitestIndentationSynchWraping branch December 26, 2025 08:45
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