Update BallThreadTest.java
What does this PR do?
This PR resolves Spotless code formatting violations that were causing Maven build failures in the twin module.
Fixes #3303
Changes made:
- Restored required imports for
ArgumentMatchers.anyandArgumentMatchers.eqthat are used in thetestInterrupt()method - Fixed import ordering to follow alphabetical convention as enforced by Spotless
- Added proper spacing between import statements and class declaration
- Removed commented-out import statements to clean up the code
Root cause:
The original issue was caused by unused imports that were commented out, but the code still referenced eq() and any() methods in the test. This created a mismatch between what was imported and what was actually used, triggering Spotless formatting violations.
Testing:
- [x] Build passes locally with
mvn clean compile - [x] Spotless check passes with
mvn spotless:check - [x] All existing tests continue to pass
- [x] Verified fix resolves the specific Maven build failure mentioned in #3303
This change ensures the codebase maintains consistent formatting standards while preserving all test functionality.
PR Summary
This PR fixes Spotless code formatting violations in the BallThreadTest.java file, resolving a Maven build failure. The changes include restoring required imports, fixing import ordering, adding spacing between imports and the class declaration, and removing commented-out imports.
Changes
| File | Summary |
|---|---|
twin/src/test/java/com/iluwatar/twin/BallThreadTest.java |
Fixed Spotless code formatting violations. Restored imports for ArgumentMatchers.any and ArgumentMatchers.eq. Fixed import order and spacing. Removed commented-out imports. |
autogenerated by presubmit.ai
Quality Gate passed
Issues
0 New issues
0 Accepted issues
Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code
The original issue was caused by unused imports that were commented out, but the code still referenced eq() and any() methods in the test. This created a mismatch between what was imported and what was actually used, triggering Spotless formatting violations. Now its Fixed
This PR is stale because it has been open 60 days with no activity.