summaryrefslogtreecommitdiff
path: root/NET/worlds/console
diff options
context:
space:
mode:
authorFuwn <[email protected]>2026-02-13 01:37:09 -0800
committerFuwn <[email protected]>2026-02-13 01:38:24 -0800
commite98bc1e3da07fa47cfff74b71d4d3faed489d7a2 (patch)
treefa2f2c3a8a4c580584d45187e57a30fee7ae60fe /NET/worlds/console
parentInitial commit (diff)
downloadworldsplayer-e98bc1e3da07fa47cfff74b71d4d3faed489d7a2.tar.xz
worldsplayer-e98bc1e3da07fa47cfff74b71d4d3faed489d7a2.zip
fix: Decompilation artifact repairs for Java 11 compilation
- Duplicate variable declarations in switch-case branches (AvMenu, ServerInputStream, netData, AnimatedAction) - Ambiguous null constructor calls requiring explicit casts (ExpireDialog, PosableShape) - Deprecated getPeer() replaced with isDisplayable() (PolledDialog) - Decompiler $assertionsDisabled artifact removed (BackgroundLoader) - Missing null-safety on unboxing (BooleanFieldEditorDialog) - Raw generic types parameterized (ShallowEnumeration) - Raw Enumeration cast added (Shape)
Diffstat (limited to 'NET/worlds/console')
-rw-r--r--NET/worlds/console/AvMenu.java6
-rw-r--r--NET/worlds/console/ExpireDialog.java2
-rw-r--r--NET/worlds/console/PolledDialog.java2
3 files changed, 5 insertions, 5 deletions
diff --git a/NET/worlds/console/AvMenu.java b/NET/worlds/console/AvMenu.java
index e406673..99d3484 100644
--- a/NET/worlds/console/AvMenu.java
+++ b/NET/worlds/console/AvMenu.java
@@ -371,7 +371,7 @@ public class AvMenu extends Menu implements AvatarDialogCallback {
result = findIndex(headTypes, bodyType);
return result < 0 ? 0 : result;
case 1:
- int p = str.lastIndexOf("NS");
+ p = str.lastIndexOf("NS");
if (p >= 0) {
result = "qhd0DHQ".indexOf(str.charAt(p + 2));
}
@@ -379,7 +379,7 @@ public class AvMenu extends Menu implements AvatarDialogCallback {
return result < 0 ? 3 : result;
case 2:
int head = str.lastIndexOf("NS");
- int p = str.lastIndexOf("DgT");
+ p = str.lastIndexOf("DgT");
if (p > head) {
p += 3;
@@ -412,7 +412,7 @@ public class AvMenu extends Menu implements AvatarDialogCallback {
return result < 0 ? 0 : result;
default:
- int p = PosableShape.getMatPosition(str, "fabcdeOVKY".charAt(index - 3));
+ p = PosableShape.getMatPosition(str, "fabcdeOVKY".charAt(index - 3));
if (p >= 0 && str.charAt(p) == 'C' && str.charAt(p + 1) == '_') {
char letter = str.charAt(p + 2);
if (letter >= 'A' && letter <= 'Z') {
diff --git a/NET/worlds/console/ExpireDialog.java b/NET/worlds/console/ExpireDialog.java
index 7b1f80f..82a3cb1 100644
--- a/NET/worlds/console/ExpireDialog.java
+++ b/NET/worlds/console/ExpireDialog.java
@@ -16,7 +16,7 @@ class ExpireDialog extends Dialog {
private static Font font = new Font(Console.message("ButtonFont"), 0, 12);
public ExpireDialog(Date expireDate) {
- super(null, GammaFrame.getDefaultTitle(), false);
+ super((Dialog)null, GammaFrame.getDefaultTitle(), false);
this.setLayout(new BorderLayout(15, 15));
this.add("Center", new MultiLineLabel(Console.message("beta-expired") + DateFormat.getDateTimeInstance().format(expireDate), 20, 20));
this.button = new Button(Console.message("OK"));
diff --git a/NET/worlds/console/PolledDialog.java b/NET/worlds/console/PolledDialog.java
index 0f26bc0..0586ddd 100644
--- a/NET/worlds/console/PolledDialog.java
+++ b/NET/worlds/console/PolledDialog.java
@@ -124,7 +124,7 @@ public abstract class PolledDialog extends Dialog implements MainCallback, Dialo
if (this.toBeDisposed) {
this.setVisible(false);
this.parent.requestFocus();
- if (this.getPeer() != null) {
+ if (this.isDisplayable()) {
this.dispose();
}