Fixed 1.16 (tough someone needs to fix core/objects/opengl/RenderRegion to work with java8)

This commit is contained in:
coolGi2007
2022-03-03 17:39:14 +10:30
parent d84d535896
commit e41b19ba2e
3 changed files with 3 additions and 10 deletions
@@ -20,16 +20,9 @@
package com.seibel.lod.core.builders.bufferBuilding;
import java.time.Duration;
import java.util.concurrent.CancellationException;
import java.util.concurrent.CompletableFuture;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.TimeoutException;
import java.util.concurrent.*;
import java.util.concurrent.locks.ReentrantLock;
import org.apache.logging.log4j.core.tools.picocli.CommandLine.ExecutionException;
import com.seibel.lod.core.api.ApiShared;
import com.seibel.lod.core.handlers.dependencyInjection.SingletonHandler;
import com.seibel.lod.core.objects.lod.LodDimension;
@@ -222,7 +222,7 @@ public class RenderRegion implements AutoCloseable
+ " encountered error on exit: ",
new ConcurrentModificationException("RenderRegion Illegal State"));
}
return CompletableFuture.failedStage(e);
return CompletableFuture.failedStage(e); // FIXME LeeTom can you make this with java8
});
}
@@ -116,7 +116,7 @@ public final class GLMessage {
}
public GLMessage add(String str) {
str = str.strip();
str = str.replaceAll("^[ \t]+|[ \t]+$", ""); // TODO: Check this as String.strip() dosnt exist in java 8
if (str.isEmpty()) return null;
boolean b = runStage(str);
if (b && stage >= 16) {