mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-05-26 01:36:09 +00:00
Do not parse imports from names with namespace suffix
This commit is contained in:
@@ -174,6 +174,14 @@ public class Multiname {
|
||||
public void setDisplayNamespace(boolean displayNamespace) {
|
||||
this.displayNamespace = displayNamespace;
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks whether this multiname displays its namespace as #suffix
|
||||
* @return True when displays
|
||||
*/
|
||||
public boolean doesDisplayNamespace() {
|
||||
return displayNamespace;
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks if the multiname kind is valid.
|
||||
|
||||
@@ -140,7 +140,7 @@ public class DependencyParser {
|
||||
Namespace ns = m.getNamespace(abc.constants);
|
||||
String name = m.getName(usedDeobfuscations, abc, abc.constants, fullyQualifiedNames, true, true);
|
||||
NamespaceSet nss = m.getNamespaceSet(abc.constants);
|
||||
if (ns != null) {
|
||||
if (ns != null && !m.doesDisplayNamespace()) {
|
||||
parseDependenciesFromNS(abcIndex, ignoredCustom, abc, dependencies, m.namespace_index, ignorePackage, name, dependencyType, uses);
|
||||
}
|
||||
if (nss != null) {
|
||||
|
||||
Reference in New Issue
Block a user