Merge pull request #118 from Chuckame/fix/convert-performance-issues

Fixed Multiname - performance issues
This commit is contained in:
Jindra Petřík
2022-02-20 10:35:15 +01:00
committed by GitHub
2 changed files with 3 additions and 2 deletions

View File

@@ -33,6 +33,7 @@ All notable changes to this project will be documented in this file.
- [#1773] - Auto set flagWideCodes on FontInfo wide character adding
- [#1769] - Do not mark getter+setter as colliding (#xxx suffix)
- [#1801] - Flex SDK not required on commandline when Flex compilation is disabled
- Multiname - performance issues
## [15.0.0] - 2021-11-29
### Added

View File

@@ -377,7 +377,7 @@ public class Multiname {
}
}
if (fullyQualifiedNames != null && fullyQualifiedNames.contains(DottedChain.parseWithSuffix(name))) {
if (fullyQualifiedNames != null && !fullyQualifiedNames.isEmpty() && fullyQualifiedNames.contains(DottedChain.parseWithSuffix(name))) {
DottedChain dc = getNameWithNamespace(abc.constants, withSuffix);
return dontDeobfuscate ? dc.toRawString() : dc.toPrintableString(true);
}
@@ -396,7 +396,7 @@ public class Multiname {
return isAttribute() ? "@*" : "*";
} else {
String name = constants.getString(name_index);
if (fullyQualifiedNames != null && fullyQualifiedNames.contains(DottedChain.parseWithSuffix(name))) {
if (fullyQualifiedNames != null && !fullyQualifiedNames.isEmpty() && fullyQualifiedNames.contains(DottedChain.parseWithSuffix(name))) {
DottedChain dc = getNameWithNamespace(constants, withSuffix);
return dontDeobfuscate ? dc.toRawString() : dc.toPrintableString(true);
}