diff --git a/src/main/java/noppes/npcs/client/gui/util/script/interpreter/js_parser/DtsModScanner.java b/src/main/java/noppes/npcs/client/gui/util/script/interpreter/js_parser/DtsModScanner.java index d30503e8b..938e334b1 100644 --- a/src/main/java/noppes/npcs/client/gui/util/script/interpreter/js_parser/DtsModScanner.java +++ b/src/main/java/noppes/npcs/client/gui/util/script/interpreter/js_parser/DtsModScanner.java @@ -47,9 +47,9 @@ final class DtsModScanner { for (DtsFileRef ref : dtsFiles) { domainCounts.put(ref.getDomain(), domainCounts.getOrDefault(ref.getDomain(), 0) + 1); } - System.out.println("[JSTypeRegistry] Found " + dtsFiles.size() + " .d.ts files across " + domainCounts.size() + " domains"); +// System.out.println("[JSTypeRegistry] Found " + dtsFiles.size() + " .d.ts files across " + domainCounts.size() + " domains"); for (Map.Entry entry : domainCounts.entrySet()) { - System.out.println("[JSTypeRegistry] Domain " + entry.getKey() + ": " + entry.getValue() + " files"); +// System.out.println("[JSTypeRegistry] Domain " + entry.getKey() + ": " + entry.getValue() + " files"); } } diff --git a/src/main/java/noppes/npcs/client/gui/util/script/interpreter/js_parser/JSTypeRegistry.java b/src/main/java/noppes/npcs/client/gui/util/script/interpreter/js_parser/JSTypeRegistry.java index 83e11d317..c08711051 100644 --- a/src/main/java/noppes/npcs/client/gui/util/script/interpreter/js_parser/JSTypeRegistry.java +++ b/src/main/java/noppes/npcs/client/gui/util/script/interpreter/js_parser/JSTypeRegistry.java @@ -93,7 +93,7 @@ public class JSTypeRegistry { if (dtsFiles.isEmpty()) { Set fallbackFiles = findAllDtsFilesInResources("assets/customnpcs/api"); - System.out.println("[JSTypeRegistry] Found " + fallbackFiles.size() + " .d.ts files in resources"); + // System.out.println("[JSTypeRegistry] Found " + fallbackFiles.size() + " .d.ts files in resources"); if (fallbackFiles.contains("hooks.d.ts")) { loadResourceFile(parser, "hooks.d.ts"); @@ -126,7 +126,7 @@ public class JSTypeRegistry { registerES5Builtins(); initialized = true; - System.out.println("[JSTypeRegistry] Loaded " + types.size() + " types, " + hooks.size() + " hooks from resources"); + // System.out.println("[JSTypeRegistry] Loaded " + types.size() + " types, " + hooks.size() + " hooks from resources"); } catch (Exception e) { System.err.println("[JSTypeRegistry] Failed to load type definitions from resources: " + e.getMessage()); e.printStackTrace(); @@ -276,7 +276,7 @@ public class JSTypeRegistry { } } catch (Exception e) { // File might not exist, that's ok - System.out.println("[JSTypeRegistry] Could not load " + fileName + ": " + e.getMessage()); + // System.out.println("[JSTypeRegistry] Could not load " + fileName + ": " + e.getMessage()); } } @@ -294,7 +294,7 @@ public class JSTypeRegistry { resolveAllJSDocTypes(); resolveInheritance(); initialized = true; - System.out.println("[JSTypeRegistry] Loaded " + types.size() + " types, " + hooks.size() + " hooks"); + // System.out.println("[JSTypeRegistry] Loaded " + types.size() + " types, " + hooks.size() + " hooks"); } catch (IOException e) { System.err.println("[JSTypeRegistry] Failed to load type definitions: " + e.getMessage()); e.printStackTrace(); @@ -315,7 +315,7 @@ public class JSTypeRegistry { resolveAllJSDocTypes(); resolveInheritance(); initialized = true; - System.out.println("[JSTypeRegistry] Loaded " + types.size() + " types, " + hooks.size() + " hooks from VSIX"); + // System.out.println("[JSTypeRegistry] Loaded " + types.size() + " types, " + hooks.size() + " hooks from VSIX"); } catch (IOException e) { System.err.println("[JSTypeRegistry] Failed to load VSIX: " + e.getMessage()); e.printStackTrace(); @@ -360,7 +360,7 @@ public class JSTypeRegistry { if (!typesByJavaFqn.containsKey(javaFqn)) { typesByJavaFqn.put(javaFqn, type); } else { - System.out.println("[JSTypeRegistry] Duplicate javaFqn " + javaFqn + " from " + getCurrentSource()); + // System.out.println("[JSTypeRegistry] Duplicate javaFqn " + javaFqn + " from " + getCurrentSource()); } } } @@ -1048,13 +1048,13 @@ public class JSTypeRegistry { private void logTypeCollision(String fullName, String incomingSource) { String existingSource = typeOrigins.getOrDefault(fullName, "unknown"); - System.out.println("[JSTypeRegistry] Duplicate type " + fullName + " from " + incomingSource + " (kept " + existingSource + ")"); + // System.out.println("[JSTypeRegistry] Duplicate type " + fullName + " from " + incomingSource + " (kept " + existingSource + ")"); } private void logAliasCollision(String alias, String existingType, String incomingType, String incomingSource) { String existingSource = aliasOrigins.getOrDefault(alias, "unknown"); - System.out.println("[JSTypeRegistry] Duplicate alias " + alias + " from " + incomingSource + " (kept " + existingSource + ")"); - System.out.println("[JSTypeRegistry] Alias " + alias + " existing=" + existingType + " incoming=" + incomingType); + // System.out.println("[JSTypeRegistry] Duplicate alias " + alias + " from " + incomingSource + " (kept " + existingSource + ")"); + // System.out.println("[JSTypeRegistry] Alias " + alias + " existing=" + existingType + " incoming=" + incomingType); } /** @@ -1162,9 +1162,9 @@ public class JSTypeRegistry { } // Log merge details - System.out.println("[JSTypeRegistry] Merged type " + existing.getFullName() + - " with " + methodsMerged + " methods, " + fieldsMerged + - " fields from " + incomingSource); + // System.out.println("[JSTypeRegistry] Merged type " + existing.getFullName() + + // " with " + methodsMerged + " methods, " + fieldsMerged + + // " fields from " + incomingSource); } /** diff --git a/src/main/java/noppes/npcs/client/gui/util/script/interpreter/method/MethodInfo.java b/src/main/java/noppes/npcs/client/gui/util/script/interpreter/method/MethodInfo.java index a16943e4b..ccfc347c5 100644 --- a/src/main/java/noppes/npcs/client/gui/util/script/interpreter/method/MethodInfo.java +++ b/src/main/java/noppes/npcs/client/gui/util/script/interpreter/method/MethodInfo.java @@ -163,10 +163,10 @@ public final class MethodInfo { if (reflectedReturn.isAssignableFrom(overrideClass)) { if (reflectedReturn != overrideClass) { returnType = overrideReturnType; - System.out.println("[DtsJavaBridge] Overrode return type for " - + method.getDeclaringClass().getName() + "." + name - + "(" + method.getParameterCount() + ") from " - + reflectedReturn.getName() + " to " + overrideClass.getName()); +// System.out.println("[DtsJavaBridge] Overrode return type for " +// + method.getDeclaringClass().getName() + "." + name +// + "(" + method.getParameterCount() + ") from " +// + reflectedReturn.getName() + " to " + overrideClass.getName()); } } }