reformatted project

This commit is contained in:
2025-10-16 00:58:52 +02:00
parent cf0499df44
commit 794dc1dbb1
150 changed files with 1594 additions and 1771 deletions

View File

@@ -10,7 +10,7 @@ import java.lang.reflect.Field;
import java.util.concurrent.CompletableFuture;
public class BatchUtil {
public static long[] getAffectedChunks(Batch batch) {
public static long[] getAffectedChunks(Batch<?> batch) {
try {
Field field = batch.getClass().getDeclaredField("chunkBatchesMap");
field.setAccessible(true);
@@ -19,7 +19,7 @@ public class BatchUtil {
Long2ObjectMap<ChunkBatch> chunkBatchesMap = (Long2ObjectMap<ChunkBatch>) field.get(batch);
return chunkBatchesMap.keySet().toLongArray();
} catch (NoSuchFieldException | IllegalAccessException e) {
} catch(NoSuchFieldException | IllegalAccessException e) {
throw new RuntimeException(e);
}
}
@@ -48,7 +48,7 @@ public class BatchUtil {
try {
future.get();
} catch (Exception e) {
} catch(Exception e) {
throw new RuntimeException(e);
}
}