Merge pull request #1187 from dnault/bugfix/1186-framework-parsing-performance

#1186 Performance: usage of String.format in ARSCDecoder.addMissingResSpecs
This commit is contained in:
Connor Tumbleson 2016-03-08 07:36:33 -05:00
commit 285da3836c

View File

@ -435,7 +435,7 @@ public class ARSCDecoder {
continue;
}
ResResSpec spec = new ResResSpec(new ResID(resId | i), String.format("APKTOOL_DUMMY_%04x", i), mPkg, mTypeSpec);
ResResSpec spec = new ResResSpec(new ResID(resId | i), "APKTOOL_DUMMY_" + Integer.toHexString(i), mPkg, mTypeSpec);
// If we already have this resID dont add it again.
if (! mPkg.hasResSpec(new ResID(resId | i))) {