1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2025-10-22 01:17:38 +00:00

Generic dependency update

A couple of changes caused by checkstyle being a little more strict.
This commit is contained in:
Jonathan Coates
2023-08-31 19:14:37 +01:00
parent 8fb1dd346c
commit 5dd6b9a637
22 changed files with 2104 additions and 528 deletions

View File

@@ -13,13 +13,13 @@ import java.util.concurrent.TimeUnit;
* <p>
* This is useful for emulators, where we'll never make any main thread calls.
*/
public class NoWorkMainThreadScheduler implements MainThreadScheduler {
public final class NoWorkMainThreadScheduler implements MainThreadScheduler {
@Override
public Executor createExecutor(MetricsObserver observer) {
return new ExecutorImpl();
}
private static class ExecutorImpl implements Executor {
private static final class ExecutorImpl implements Executor {
@Override
public boolean enqueue(Runnable task) {
throw new IllegalStateException("Cannot schedule tasks");