Fix goofy copyright headers

This commit is contained in:
lax1dude
2025-02-12 21:02:39 -08:00
parent ad900211dd
commit b0a2739fe1
992 changed files with 11591 additions and 10601 deletions

View File

@ -1,6 +1,4 @@
package net.lax1dude.eaglercraft.v1_8.futures;
/**
/*
* Copyright (c) 2022-2023 lax1dude, ayunami2000. All Rights Reserved.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
@ -15,6 +13,9 @@ package net.lax1dude.eaglercraft.v1_8.futures;
* POSSIBILITY OF SUCH DAMAGE.
*
*/
package net.lax1dude.eaglercraft.v1_8.futures;
public class CancellationException extends IllegalStateException {
public CancellationException() {
@ -33,4 +34,4 @@ public class CancellationException extends IllegalStateException {
super(cause);
}
}
}

View File

@ -1,6 +1,4 @@
package net.lax1dude.eaglercraft.v1_8.futures;
/**
/*
* Copyright (c) 2022-2023 lax1dude, ayunami2000. All Rights Reserved.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
@ -15,6 +13,9 @@ package net.lax1dude.eaglercraft.v1_8.futures;
* POSSIBILITY OF SUCH DAMAGE.
*
*/
package net.lax1dude.eaglercraft.v1_8.futures;
public class ExecutionException extends RuntimeException {
public ExecutionException() {
@ -32,4 +33,4 @@ public class ExecutionException extends RuntimeException {
super(cause);
}
}
}

View File

@ -1,8 +1,4 @@
package net.lax1dude.eaglercraft.v1_8.futures;
import java.util.concurrent.Callable;
/**
/*
* Copyright (c) 2022-2023 lax1dude, ayunami2000. All Rights Reserved.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
@ -17,6 +13,11 @@ import java.util.concurrent.Callable;
* POSSIBILITY OF SUCH DAMAGE.
*
*/
package net.lax1dude.eaglercraft.v1_8.futures;
import java.util.concurrent.Callable;
public class Executors {
public static <T> Callable<T> callable(Runnable task, T result) {
@ -46,4 +47,4 @@ public class Executors {
}
}
}
}

View File

@ -1,8 +1,4 @@
package net.lax1dude.eaglercraft.v1_8.futures;
import java.util.concurrent.TimeUnit;
/**
/*
* Copyright (c) 2022-2023 lax1dude, ayunami2000. All Rights Reserved.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
@ -17,6 +13,11 @@ import java.util.concurrent.TimeUnit;
* POSSIBILITY OF SUCH DAMAGE.
*
*/
package net.lax1dude.eaglercraft.v1_8.futures;
import java.util.concurrent.TimeUnit;
public interface Future<V> {
boolean cancel(boolean mayInterruptIfRunning);
@ -28,4 +29,4 @@ public interface Future<V> {
V get() throws InterruptedException, ExecutionException;
V get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException;
}
}

View File

@ -1,9 +1,4 @@
package net.lax1dude.eaglercraft.v1_8.futures;
import java.util.concurrent.Callable;
import java.util.concurrent.TimeUnit;
/**
/*
* Copyright (c) 2022-2023 lax1dude, ayunami2000. All Rights Reserved.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
@ -18,6 +13,12 @@ import java.util.concurrent.TimeUnit;
* POSSIBILITY OF SUCH DAMAGE.
*
*/
package net.lax1dude.eaglercraft.v1_8.futures;
import java.util.concurrent.Callable;
import java.util.concurrent.TimeUnit;
public class FutureTask<V> implements RunnableFuture<V> {
private boolean cancelled;
@ -86,4 +87,4 @@ public class FutureTask<V> implements RunnableFuture<V> {
protected void done() {
}
}
}

View File

@ -1,16 +1,4 @@
package net.lax1dude.eaglercraft.v1_8.futures;
import static com.google.common.base.Preconditions.checkNotNull;
import java.util.concurrent.Executor;
import java.util.concurrent.TimeUnit;
import javax.annotation.Nullable;
import net.lax1dude.eaglercraft.v1_8.log4j.LogManager;
import net.lax1dude.eaglercraft.v1_8.log4j.Logger;
/**
/*
* Copyright (c) 2022-2023 lax1dude, ayunami2000. All Rights Reserved.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
@ -25,6 +13,19 @@ import net.lax1dude.eaglercraft.v1_8.log4j.Logger;
* POSSIBILITY OF SUCH DAMAGE.
*
*/
package net.lax1dude.eaglercraft.v1_8.futures;
import static com.google.common.base.Preconditions.checkNotNull;
import java.util.concurrent.Executor;
import java.util.concurrent.TimeUnit;
import javax.annotation.Nullable;
import net.lax1dude.eaglercraft.v1_8.log4j.LogManager;
import net.lax1dude.eaglercraft.v1_8.log4j.Logger;
public class Futures {
private abstract static class ImmediateFuture<V> implements ListenableFuture<V> {
@ -128,4 +129,4 @@ public class Futures {
return new ImmediateCancelledFuture<V>();
}
}
}

View File

@ -1,11 +1,4 @@
package net.lax1dude.eaglercraft.v1_8.futures;
import java.util.concurrent.Executor;
import net.lax1dude.eaglercraft.v1_8.log4j.LogManager;
import net.lax1dude.eaglercraft.v1_8.log4j.Logger;
/**
/*
* Copyright (c) 2022-2023 lax1dude, ayunami2000. All Rights Reserved.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
@ -20,10 +13,18 @@ import net.lax1dude.eaglercraft.v1_8.log4j.Logger;
* POSSIBILITY OF SUCH DAMAGE.
*
*/
package net.lax1dude.eaglercraft.v1_8.futures;
import java.util.concurrent.Executor;
import net.lax1dude.eaglercraft.v1_8.log4j.LogManager;
import net.lax1dude.eaglercraft.v1_8.log4j.Logger;
public interface ListenableFuture<V> extends Future<V> {
static final Logger futureExceptionLogger = LogManager.getLogger("ListenableFuture");
void addListener(Runnable listener, Executor executor);
}
}

View File

@ -1,11 +1,4 @@
package net.lax1dude.eaglercraft.v1_8.futures;
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.Callable;
import java.util.concurrent.Executor;
/**
/*
* Copyright (c) 2022-2023 lax1dude, ayunami2000. All Rights Reserved.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
@ -20,6 +13,14 @@ import java.util.concurrent.Executor;
* POSSIBILITY OF SUCH DAMAGE.
*
*/
package net.lax1dude.eaglercraft.v1_8.futures;
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.Callable;
import java.util.concurrent.Executor;
public class ListenableFutureTask<V> extends FutureTask<V> implements ListenableFuture<V> {
private final List<Runnable> listeners = new ArrayList<>();
@ -57,4 +58,4 @@ public class ListenableFutureTask<V> extends FutureTask<V> implements Listenable
return new ListenableFutureTask<>(callableToSchedule);
}
}
}

View File

@ -1,6 +1,4 @@
package net.lax1dude.eaglercraft.v1_8.futures;
/**
/*
* Copyright (c) 2022-2023 lax1dude, ayunami2000. All Rights Reserved.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
@ -15,6 +13,9 @@ package net.lax1dude.eaglercraft.v1_8.futures;
* POSSIBILITY OF SUCH DAMAGE.
*
*/
package net.lax1dude.eaglercraft.v1_8.futures;
public interface RunnableFuture<V> extends Runnable, Future<V> {
void run();
}
}