From 5ab9f91f6a6e800c82808e073bc75f6c6dc960b3 Mon Sep 17 00:00:00 2001 From: MASES Public Developers Team <94312179+masesdevelopers@users.noreply.github.com> Date: Thu, 19 Sep 2024 14:34:49 +0200 Subject: [PATCH] Update code to fix #520 and #527 when tool is used with Jars (#529) --- src/net/JNetReflector/InternalMethods.cs | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/net/JNetReflector/InternalMethods.cs b/src/net/JNetReflector/InternalMethods.cs index cd470caa91..0963a1a8d3 100644 --- a/src/net/JNetReflector/InternalMethods.cs +++ b/src/net/JNetReflector/InternalMethods.cs @@ -75,7 +75,11 @@ static void ReportTrace(ReflectionTraceLevel level, string format, params object static void WriteFile(string path, string content) { - if (path.EndsWith(FileNameAndDirectory.AllPackageClassesFileName)) Interlocked.Increment(ref namespaces); + if (path.EndsWith(FileNameAndDirectory.AllPackageClassesFileName)) + { + Interlocked.Increment(ref namespaces); + return; // do not write anymore AllPackageClasses.cs + } else Interlocked.Increment(ref classes); if (!JNetReflectorCore.DryRun) @@ -336,17 +340,14 @@ static void AnalyzeSubItems(string package, IDictionary