Skip to content

Commit

Permalink
Fix #520 (#532)
Browse files Browse the repository at this point in the history
  • Loading branch information
masesdevelopers authored Sep 19, 2024
1 parent 5713321 commit a900d25
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/net/JNetReflector/InternalMethods.cs
Original file line number Diff line number Diff line change
Expand Up @@ -110,16 +110,16 @@ public static void Reflect()
else throw new ArgumentException("At least one of ClassesToAnaylyze, JarsToAnalyze or ModulesToParse must be set");
w.Stop();

if (JNetReflectorCore.JarsToAnalyze != null)
{
foreach (var item in _allPackages)
{
var packageContent = File.ReadAllText(item.Key);
var itemPackage = packageContent.Replace(AllPackageClasses.CLASSES, string.Empty);

WriteFile(item.Key, itemPackage);
}
}
//if (JNetReflectorCore.JarsToAnalyze != null)
//{
// foreach (var item in _allPackages)
// {
// var packageContent = File.ReadAllText(item.Key);
// var itemPackage = packageContent.Replace(AllPackageClasses.CLASSES, string.Empty);

// WriteFile(item.Key, itemPackage);
// }
//}

Console.WriteLine();
Console.WriteLine($"Operation completed at {DateTime.Now} in {w.Elapsed}. Namespaces: {namespaces} - Classes: {classes}");
Expand Down

0 comments on commit a900d25

Please sign in to comment.