Projects STRLCPY jadx Commits 5ea6c467
🤬
  • fix(gui): show all code sources in summary (remove dex filter) (#1716)

  • Loading...
  • Skylot committed 1 year ago
    5ea6c467
    1 parent b28f8ba8
  • ■ ■ ■ ■ ■ ■
    jadx-gui/src/main/java/jadx/gui/ui/treenodes/SummaryNode.java
    skipped 1 lines
    2 2   
    3 3  import java.io.File;
    4 4  import java.io.IOException;
     5 +import java.util.Comparator;
    5 6  import java.util.HashSet;
    6 7  import java.util.List;
    7 8  import java.util.Set;
    skipped 67 lines
    75 76   List<String> codeSources = classes.stream()
    76 77   .map(ClassNode::getInputFileName)
    77 78   .distinct()
    78  - .sorted()
     79 + .sorted(Comparator.naturalOrder())
    79 80   .collect(Collectors.toList());
    80 81   codeSources.remove("synthetic");
    81 82   int codeSourcesCount = codeSources.size();
    skipped 2 lines
    84 85   if (codeSourcesCount != 1) {
    85 86   builder.append("<li>Count: " + codeSourcesCount + "</li>");
    86 87   }
    87  - // dex files list
    88  - codeSources.removeIf(f -> !f.endsWith(".dex"));
    89  - if (!codeSources.isEmpty()) {
    90  - for (String input : codeSources) {
    91  - builder.append("<li>");
    92  - builder.escape(input);
    93  - builder.append("</li>");
    94  - }
     88 + for (String input : codeSources) {
     89 + builder.append("<li>");
     90 + builder.escape(input);
     91 + builder.append("</li>");
    95 92   }
    96 93   builder.append("</ul>");
    97 94   
    skipped 73 lines
Please wait...
Page is in error, reload to recover