diff options
author | TheKodeToad <TheKodeToad@proton.me> | 2022-11-03 16:40:23 +0000 |
---|---|---|
committer | TheKodeToad <TheKodeToad@proton.me> | 2022-11-08 16:35:43 +0000 |
commit | 8ce78dcc54a8ed3e6292a8650692fa9c520a993d (patch) | |
tree | b1b188f289728d019dc259243b5c296cb1eba982 /libraries/launcher/net/minecraft | |
parent | afe088dba18b83ae1ea79e3b31ef5026f68b7b6d (diff) | |
download | PrismLauncher-8ce78dcc54a8ed3e6292a8650692fa9c520a993d.tar.gz PrismLauncher-8ce78dcc54a8ed3e6292a8650692fa9c520a993d.tar.bz2 PrismLauncher-8ce78dcc54a8ed3e6292a8650692fa9c520a993d.zip |
Try to improve consistency
- Makes code formatting more consistent with the C++ codebase. Probably removes some trailing whitespace. Maybe it would be best to commit an Eclipse or IntelliJ code format preferences file?
- Removes obscure suppressions. I personally think it's better to only suppress warnings that javac complains about. Suppressing a lot of non-standardised warnings (many of them turned off by default even in IntelliJ) just creates needless clutter.
- Fixes some trivial warnings instead of suppressing them. serialVersionUID is sort of stupid, but I'd rather mentally ignore it or just fix it if it's really that annoying.
Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
Diffstat (limited to 'libraries/launcher/net/minecraft')
-rw-r--r-- | libraries/launcher/net/minecraft/Launcher.java | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/libraries/launcher/net/minecraft/Launcher.java b/libraries/launcher/net/minecraft/Launcher.java index 8dff5692..796e4829 100644 --- a/libraries/launcher/net/minecraft/Launcher.java +++ b/libraries/launcher/net/minecraft/Launcher.java @@ -72,12 +72,12 @@ import java.util.TreeMap; */ public final class Launcher extends Applet implements AppletStub { + private static final long serialVersionUID = 1L; + private final Map<String, String> params = new TreeMap<>(); private Applet wrappedApplet; - private final URL documentBase; - private boolean active = false; public Launcher(Applet applet) { @@ -85,11 +85,11 @@ public final class Launcher extends Applet implements AppletStub { } public Launcher(Applet applet, URL documentBase) { - this.setLayout(new BorderLayout()); + setLayout(new BorderLayout()); this.add(applet, "Center"); - this.wrappedApplet = applet; + wrappedApplet = applet; try { if (documentBase != null) { @@ -109,12 +109,12 @@ public final class Launcher extends Applet implements AppletStub { } public void replace(Applet applet) { - this.wrappedApplet = applet; + wrappedApplet = applet; applet.setStub(this); applet.setSize(getWidth(), getHeight()); - this.setLayout(new BorderLayout()); + setLayout(new BorderLayout()); this.add(applet, "Center"); applet.init(); |