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

Fixes errors

上级 d20cd43a
......@@ -119,13 +119,6 @@ public class CodeWriter {
buf.append(code.buf);
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() {
addLine();
......
......@@ -251,8 +251,8 @@ public class BinaryXMLParser extends CommonBinaryParser {
}
isOneLine = true;
isLastEnd = false;
currentTag = getValidTagAttributeName(getString(startNSName));
currentTag = deobfClassName(currentTag);
currentTag = deobfClassName(getString(startNSName));
currentTag = getValidTagAttributeName(currentTag);
writer.startLine("<").add(currentTag);
writer.attachSourceLine(elementBegLineNumber);
int attributeStart = is.readInt16();
......@@ -441,7 +441,8 @@ public class BinaryXMLParser extends CommonBinaryParser {
int comment = is.readInt32();
int elementNS = 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) {
writer.add("/>");
} else {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册