Move MXSerializer to unique namespace

- prevents dependency version from loading
 - patch MXSerializer to skip duplicate namespaces at same depth
This commit is contained in:
Connor Tumbleson 2017-05-08 08:33:49 -04:00
parent dfbcf298c2
commit 429e18ac25
No known key found for this signature in database
GPG Key ID: C3CC0A201EC7DA75
2 changed files with 4 additions and 4 deletions

View File

@ -17,7 +17,7 @@
package brut.androlib.res.util;
import java.io.*;
import org.xmlpull.mxp1_serializer.MXSerializer;
import org.xmlpull.renamed.MXSerializer;
/**
* @author Ryszard Wiśniewski <brut.alll@gmail.com>

View File

@ -1,4 +1,4 @@
package org.xmlpull.mxp1_serializer;
package org.xmlpull.renamed;
import java.io.IOException;
import java.io.OutputStream;
@ -440,8 +440,8 @@ public class MXSerializer implements XmlSerializer {
// check that prefix is not duplicated ...
for (int i = elNamespaceCount[depth]; i < namespaceEnd; i++) {
if (prefix == namespacePrefix[i]) {
throw new IllegalStateException("duplicated prefix "
+ printable(prefix) + getLocation());
// Toss out extra namespaces at same depth to fix #1456
return;
}
}