Fix formatting

Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
This commit is contained in:
TheKodeToad 2022-10-29 09:47:09 +01:00
parent e5622ce824
commit e86fbc697f
8 changed files with 94 additions and 103 deletions

View File

@ -16,7 +16,6 @@
package net.minecraft; package net.minecraft;
import java.applet.Applet; import java.applet.Applet;
import java.applet.AppletStub; import java.applet.AppletStub;
import java.awt.BorderLayout; import java.awt.BorderLayout;
@ -27,7 +26,6 @@ import java.net.URL;
import java.util.Map; import java.util.Map;
import java.util.TreeMap; import java.util.TreeMap;
/** /**
* WARNING: This class is reflectively accessed by legacy Forge versions. * WARNING: This class is reflectively accessed by legacy Forge versions.
* <p> * <p>

View File

@ -52,7 +52,6 @@
package org.prismlauncher; package org.prismlauncher;
import org.prismlauncher.exception.ParseException; import org.prismlauncher.exception.ParseException;
import org.prismlauncher.launcher.Launcher; import org.prismlauncher.launcher.Launcher;
import org.prismlauncher.launcher.LauncherFactory; import org.prismlauncher.launcher.LauncherFactory;
@ -65,8 +64,8 @@ import java.nio.charset.StandardCharsets;
import java.util.logging.Level; import java.util.logging.Level;
import java.util.logging.Logger; import java.util.logging.Logger;
public final class EntryPoint { public final class EntryPoint {
private static final Logger LOGGER = Logger.getLogger("EntryPoint"); private static final Logger LOGGER = Logger.getLogger("EntryPoint");
private final Parameters params = new Parameters(); private final Parameters params = new Parameters();
@ -163,7 +162,6 @@ public final class EntryPoint {
ABORT ABORT
} }
private enum ExitCode { private enum ExitCode {
NORMAL(0), NORMAL(0),
ERROR(1); ERROR(1);

View File

@ -16,7 +16,8 @@
package org.prismlauncher.launcher; package org.prismlauncher.launcher;
public interface Launcher { public interface Launcher {
void launch() throws Throwable; void launch() throws Throwable;
} }

View File

@ -35,7 +35,6 @@
package org.prismlauncher.launcher; package org.prismlauncher.launcher;
import org.prismlauncher.launcher.impl.LegacyLauncher; import org.prismlauncher.launcher.impl.LegacyLauncher;
import org.prismlauncher.launcher.impl.StandardLauncher; import org.prismlauncher.launcher.impl.StandardLauncher;
import org.prismlauncher.utils.Parameters; import org.prismlauncher.utils.Parameters;
@ -43,8 +42,8 @@ import org.prismlauncher.utils.Parameters;
import java.util.HashMap; import java.util.HashMap;
import java.util.Map; import java.util.Map;
public final class LauncherFactory { public final class LauncherFactory {
private static final Map<String, LauncherProvider> launcherRegistry = new HashMap<>(); private static final Map<String, LauncherProvider> launcherRegistry = new HashMap<>();
static { static {

View File

@ -35,10 +35,10 @@
package org.prismlauncher.launcher; package org.prismlauncher.launcher;
import org.prismlauncher.utils.Parameters; import org.prismlauncher.utils.Parameters;
public interface LauncherProvider { public interface LauncherProvider {
Launcher provide(Parameters parameters); Launcher provide(Parameters parameters);
} }

View File

@ -15,7 +15,6 @@
package org.prismlauncher.launcher.impl; package org.prismlauncher.launcher.impl;
import org.prismlauncher.exception.ParseException; import org.prismlauncher.exception.ParseException;
import org.prismlauncher.launcher.Launcher; import org.prismlauncher.launcher.Launcher;
import org.prismlauncher.utils.Parameters; import org.prismlauncher.utils.Parameters;
@ -26,7 +25,6 @@ import java.lang.invoke.MethodType;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
public abstract class AbstractLauncher implements Launcher { public abstract class AbstractLauncher implements Launcher {
private static final int DEFAULT_WINDOW_WIDTH = 854; private static final int DEFAULT_WINDOW_WIDTH = 854;

View File

@ -15,7 +15,6 @@
package org.prismlauncher.launcher.impl; package org.prismlauncher.launcher.impl;
import org.prismlauncher.applet.LegacyFrame; import org.prismlauncher.applet.LegacyFrame;
import org.prismlauncher.utils.LegacyUtils; import org.prismlauncher.utils.LegacyUtils;
import org.prismlauncher.utils.Parameters; import org.prismlauncher.utils.Parameters;

View File

@ -16,12 +16,10 @@
package org.prismlauncher.utils; package org.prismlauncher.utils;
import java.io.File; import java.io.File;
import java.lang.reflect.Field; import java.lang.reflect.Field;
import java.lang.reflect.Modifier; import java.lang.reflect.Modifier;
public final class LegacyUtils { public final class LegacyUtils {
private LegacyUtils() { private LegacyUtils() {