mirror of
https://github.com/Xiao-MoMi/craft-engine.git
synced 2025-12-19 15:09:15 +00:00
修改
This commit is contained in:
@@ -43,7 +43,7 @@ import java.util.concurrent.TimeUnit;
|
||||
import java.util.concurrent.atomic.AtomicLong;
|
||||
|
||||
public final class SelfHostHttpServer {
|
||||
private static volatile SelfHostHttpServer instance;
|
||||
private static SelfHostHttpServer instance;
|
||||
private final Cache<String, String> oneTimePackUrls = Caffeine.newBuilder()
|
||||
.maximumSize(1024)
|
||||
.scheduler(Scheduler.systemScheduler())
|
||||
@@ -94,11 +94,7 @@ public final class SelfHostHttpServer {
|
||||
|
||||
public static SelfHostHttpServer instance() {
|
||||
if (instance == null) {
|
||||
synchronized (SelfHostHttpServer.class) {
|
||||
if (instance == null) {
|
||||
instance = new SelfHostHttpServer();
|
||||
}
|
||||
}
|
||||
instance = new SelfHostHttpServer();
|
||||
}
|
||||
return instance;
|
||||
}
|
||||
|
||||
@@ -2,13 +2,10 @@ package net.momirealms.craftengine.core.util;
|
||||
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
import java.io.Serial;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collection;
|
||||
|
||||
public class MarkedArrayList<T> extends ArrayList<T> {
|
||||
@Serial
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
public MarkedArrayList() {
|
||||
}
|
||||
|
||||
@@ -1,9 +1,6 @@
|
||||
package net.momirealms.craftengine.core.util;
|
||||
|
||||
import java.io.Serial;
|
||||
import java.util.HashMap;
|
||||
|
||||
public class MarkedHashMap<K, V> extends HashMap<K, V> {
|
||||
@Serial
|
||||
private static final long serialVersionUID = 1L;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user