summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeuin <[email protected]>2022-08-14 11:17:43 +0800
committerKeuin <[email protected]>2022-08-14 11:17:43 +0800
commitcd33c1361a47aa6f8a5e484c0025a0a4fab6cb51 (patch)
tree31f7120ec878bdbe8a465c5efca6e7d730737356
parent45a66f441cc67a4891114b379ff02c06fe5711cc (diff)
Code reformat.
-rw-r--r--src/main/java/com/keuin/crosslink/messaging/filter/IFilter.java1
-rw-r--r--src/main/java/com/keuin/crosslink/messaging/util/Messaging.java1
-rw-r--r--src/main/java/com/keuin/crosslink/plugin/common/PluginMain.java1
-rw-r--r--src/test/java/com/keuin/crosslink/messaging/router/ConcreteRouterTest.java10
4 files changed, 4 insertions, 9 deletions
diff --git a/src/main/java/com/keuin/crosslink/messaging/filter/IFilter.java b/src/main/java/com/keuin/crosslink/messaging/filter/IFilter.java
index 1f4fd43..5f1bb67 100644
--- a/src/main/java/com/keuin/crosslink/messaging/filter/IFilter.java
+++ b/src/main/java/com/keuin/crosslink/messaging/filter/IFilter.java
@@ -5,7 +5,6 @@ import com.keuin.crosslink.messaging.endpoint.IEndpoint;
import com.keuin.crosslink.messaging.util.Messaging;
import org.jetbrains.annotations.NotNull;
-import java.util.Objects;
import java.util.regex.Pattern;
import java.util.regex.PatternSyntaxException;
diff --git a/src/main/java/com/keuin/crosslink/messaging/util/Messaging.java b/src/main/java/com/keuin/crosslink/messaging/util/Messaging.java
index ff7a600..1029fe0 100644
--- a/src/main/java/com/keuin/crosslink/messaging/util/Messaging.java
+++ b/src/main/java/com/keuin/crosslink/messaging/util/Messaging.java
@@ -1,6 +1,5 @@
package com.keuin.crosslink.messaging.util;
-import com.keuin.crosslink.messaging.filter.ReIdFilter;
import net.kyori.adventure.text.Component;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
diff --git a/src/main/java/com/keuin/crosslink/plugin/common/PluginMain.java b/src/main/java/com/keuin/crosslink/plugin/common/PluginMain.java
index b0e5153..8c3d70a 100644
--- a/src/main/java/com/keuin/crosslink/plugin/common/PluginMain.java
+++ b/src/main/java/com/keuin/crosslink/plugin/common/PluginMain.java
@@ -23,7 +23,6 @@ import com.keuin.crosslink.util.version.NewVersionChecker;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
-import java.io.File;
import java.io.IOException;
import java.net.InetAddress;
import java.net.InetSocketAddress;
diff --git a/src/test/java/com/keuin/crosslink/messaging/router/ConcreteRouterTest.java b/src/test/java/com/keuin/crosslink/messaging/router/ConcreteRouterTest.java
index b9ace8d..3f6f9bd 100644
--- a/src/test/java/com/keuin/crosslink/messaging/router/ConcreteRouterTest.java
+++ b/src/test/java/com/keuin/crosslink/messaging/router/ConcreteRouterTest.java
@@ -6,12 +6,10 @@ import com.keuin.crosslink.messaging.action.RouteAction;
import com.keuin.crosslink.messaging.filter.IFilter;
import com.keuin.crosslink.messaging.filter.ReIdFilter;
import com.keuin.crosslink.messaging.message.IMessage;
-import com.keuin.crosslink.messaging.rule.IRule;
import com.keuin.crosslink.messaging.rule.ImmutableRule;
import com.keuin.crosslink.messaging.rule.ObjectType;
import com.keuin.crosslink.messaging.sender.ISender;
import com.keuin.crosslink.testable.FakeEndpoint;
-import com.keuin.crosslink.testable.FakeRouter;
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
@@ -21,14 +19,14 @@ import java.util.List;
import java.util.UUID;
import java.util.regex.Pattern;
-import static org.junit.jupiter.api.Assertions.*;
+import static org.junit.jupiter.api.Assertions.assertEquals;
class ConcreteRouterTest {
private ConcreteRouter router;
- private FakeEndpoint ep1 = new FakeEndpoint("a");
- private FakeEndpoint ep2 = new FakeEndpoint("b");
- private FakeEndpoint ep3 = new FakeEndpoint("c");
+ private final FakeEndpoint ep1 = new FakeEndpoint("a");
+ private final FakeEndpoint ep2 = new FakeEndpoint("b");
+ private final FakeEndpoint ep3 = new FakeEndpoint("c");
@BeforeEach
void setUp() {