Ignore library classes when saving decompilation result

PR #750

GitOrigin-RevId: 9751ed38b212a13022b0df9143dfa73c74a01929
master
simon816 5 years ago committed by intellij-monorepo-bot
parent ab4a7ddd16
commit 44ae885a96
  1. 5
      src/org/jetbrains/java/decompiler/struct/ContextUnit.java

@ -1,4 +1,4 @@
// Copyright 2000-2017 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. // Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package org.jetbrains.java.decompiler.struct; package org.jetbrains.java.decompiler.struct;
import org.jetbrains.java.decompiler.main.DecompilerContext; import org.jetbrains.java.decompiler.main.DecompilerContext;
@ -92,6 +92,9 @@ public class ContextUnit {
// classes // classes
for (int i = 0; i < classes.size(); i++) { for (int i = 0; i < classes.size(); i++) {
StructClass cl = classes.get(i); StructClass cl = classes.get(i);
if (!cl.isOwn()) {
continue;
}
String entryName = decompiledData.getClassEntryName(cl, classEntries.get(i)); String entryName = decompiledData.getClassEntryName(cl, classEntries.get(i));
if (entryName != null) { if (entryName != null) {
String content = decompiledData.getClassContent(cl); String content = decompiledData.getClassContent(cl);

Loading…
Cancel
Save