threadsafe StringBlock

This commit is contained in:
Connor Tumbleson 2014-02-07 07:35:03 -06:00
parent edf81c2597
commit e48ab8b9b9
2 changed files with 3 additions and 2 deletions

View File

@ -30,6 +30,7 @@ v2.0.0 (TBA)
-Fixed (issue #571) - Fixed truncated strings (Thanks jtmuhone) -Fixed (issue #571) - Fixed truncated strings (Thanks jtmuhone)
-Fixed (issue #578) - Fixed apk's with multiple empty types via ignoring them -Fixed (issue #578) - Fixed apk's with multiple empty types via ignoring them
-Fixed (issue #589) - Fixed apk's with one package named "android" from improper decoding. -Fixed (issue #589) - Fixed apk's with one package named "android" from improper decoding.
-Fixed (issue #601) - Make StringBlock thread safe (Thanks aluedeke)
-Added output to list Apktool version to help debugging. -Added output to list Apktool version to help debugging.
-Updated known bytes for configurations to 38 (from addition of layout direction) -Updated known bytes for configurations to 38 (from addition of layout direction)
-Fixed NPE when handling odex apks even with --no-src specified. (Thanks Rodrigo Chiossi) -Fixed NPE when handling odex apks even with --no-src specified. (Thanks Rodrigo Chiossi)

View File

@ -327,9 +327,9 @@ public class StringBlock {
private int[] m_styles; private int[] m_styles;
private boolean m_isUTF8; private boolean m_isUTF8;
private int[] m_stringOwns; private int[] m_stringOwns;
private static final CharsetDecoder UTF16LE_DECODER = Charset.forName( private final CharsetDecoder UTF16LE_DECODER = Charset.forName(
"UTF-16LE").newDecoder(); "UTF-16LE").newDecoder();
private static final CharsetDecoder UTF8_DECODER = Charset.forName("UTF-8") private final CharsetDecoder UTF8_DECODER = Charset.forName("UTF-8")
.newDecoder(); .newDecoder();
private static final Logger LOGGER = Logger.getLogger(StringBlock.class private static final Logger LOGGER = Logger.getLogger(StringBlock.class
.getName()); .getName());