Skip to content

[AI-8th] fix: remove unused imports in sofa-jraft#1258

Open
jervyclaw wants to merge 1 commit intosofastack:masterfrom
jervyclaw:pr/fix/unused-imports
Open

[AI-8th] fix: remove unused imports in sofa-jraft#1258
jervyclaw wants to merge 1 commit intosofastack:masterfrom
jervyclaw:pr/fix/unused-imports

Conversation

@jervyclaw
Copy link
Copy Markdown

Remove unused imports from 4 files in sofa-jraft.

Files cleaned:

  • JRaftUtils.java: removed unused ThreadPoolExecutor import
  • ReadOnlyServiceImpl.java: removed unused EnumOutter import
  • ReadIndexClosure.java: removed unused Node import
  • SegmentList.java: removed unused ArrayList import

All imports verified as unused via:

  1. Grep for actual usage in source code
  2. Checking Javadoc @{link} references (not compiled)
  3. Verifying no anonymous class or parent class usage

- Remove unused import java.util.concurrent.ThreadPoolExecutor from JRaftUtils.java
- Remove unused import com.alipay.sofa.jraft.Node from ReadIndexClosure.java
- Remove unused import com.alipay.sofa.jraft.entity.EnumOutter from ReadOnlyServiceImpl.java
- Remove unused import java.util.ArrayList from SegmentList.java

These imports were detected as unused via static analysis (they appear only in
Javadoc @link tags or are not referenced in code).

AI-assisted cleanup for SOFAStack 8th anniversary PR challenge.
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.

1 participant