From e98bc1e3da07fa47cfff74b71d4d3faed489d7a2 Mon Sep 17 00:00:00 2001 From: Fuwn Date: Fri, 13 Feb 2026 01:37:09 -0800 Subject: 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) --- NET/worlds/console/AvMenu.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'NET/worlds/console/AvMenu.java') 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') { -- cgit v1.2.3