reformatted project
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user