-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(fix) Cleanup unused imports across the project #1174
base: master
Are you sure you want to change the base?
Conversation
WalkthroughThis pull request focuses on cleaning up unused import statements across multiple files in the JRaft project. The changes involve removing import statements that are not being used in their respective Java files, which helps improve code readability and reduces unnecessary dependencies. The modifications span several files in the Changes
Assessment against linked issues
Possibly related PRs
Suggested labels
Suggested reviewers
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (8)
💤 Files with no reviewable changes (7)
✅ Files skipped from review due to trivial changes (1)
⏰ Context from checks skipped due to timeout of 90000ms (5)
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Problem
This PR removes unused import statements across the SOFA-JRaft codebase. These unused imports were identified using IntelliJ IDEA's "Inspect Code" tool. Removing these imports helps improve code readability and maintainability without affecting functionality.
Changes
The following files were updated to remove unused imports:
AbstractClientService.java
import com.alipay.sofa.jraft.util.Utils;
AtomicStateMachine.java
import com.alipay.sofa.jraft.util.Utils;
BoltRpcServer.java
import com.alipay.remoting.config.switches.GlobalSwitch;
ClosureQueueTest.java
import com.alipay.sofa.jraft.util.ThreadPoolsFactory;
import com.codahale.metrics.MetricRegistry;
IteratorTest.java
import org.junit.After;
ReadOnlyServiceImpl.java
import com.alipay.sofa.jraft.entity.EnumOutter;
ThreadPoolsFactoryTest.java
import org.junit.Before;
UtilsTest.java
import java.util.concurrent.CountDownLatch;
import com.alipay.sofa.jraft.Closure;
import com.alipay.sofa.jraft.Status;
import com.alipay.sofa.jraft.error.RaftError;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
Verification
mvn clean compile
andmvn clean test
.Related Issue
Fixes #1173
Summary by CodeRabbit