提交 0a0c4eac 编写于 作者: S Sergey Toshin

Fixes errors

上级 d20cd43a
...@@ -120,13 +120,6 @@ public class CodeWriter { ...@@ -120,13 +120,6 @@ public class CodeWriter {
return this; return this;
} }
public void updateContent(String newData) {
offset = newData.length();
buf = new StringBuilder(newData);
line = newData.split(NL).length + 1;
code = newData;
}
public CodeWriter newLine() { public CodeWriter newLine() {
addLine(); addLine();
return this; return this;
......
...@@ -251,8 +251,8 @@ public class BinaryXMLParser extends CommonBinaryParser { ...@@ -251,8 +251,8 @@ public class BinaryXMLParser extends CommonBinaryParser {
} }
isOneLine = true; isOneLine = true;
isLastEnd = false; isLastEnd = false;
currentTag = getValidTagAttributeName(getString(startNSName)); currentTag = deobfClassName(getString(startNSName));
currentTag = deobfClassName(currentTag); currentTag = getValidTagAttributeName(currentTag);
writer.startLine("<").add(currentTag); writer.startLine("<").add(currentTag);
writer.attachSourceLine(elementBegLineNumber); writer.attachSourceLine(elementBegLineNumber);
int attributeStart = is.readInt16(); int attributeStart = is.readInt16();
...@@ -441,7 +441,8 @@ public class BinaryXMLParser extends CommonBinaryParser { ...@@ -441,7 +441,8 @@ public class BinaryXMLParser extends CommonBinaryParser {
int comment = is.readInt32(); int comment = is.readInt32();
int elementNS = is.readInt32(); int elementNS = is.readInt32();
int elementNameId = is.readInt32(); int elementNameId = is.readInt32();
String elemName = getValidTagAttributeName(getString(elementNameId)); String elemName = deobfClassName(getString(elementNameId));
elemName = getValidTagAttributeName(elemName);
if (currentTag.equals(elemName) && isOneLine && !isLastEnd) { if (currentTag.equals(elemName) && isOneLine && !isLastEnd) {
writer.add("/>"); writer.add("/>");
} else { } else {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册