mirror of
https://github.com/revanced/Apktool.git
synced 2025-01-05 17:45:52 +01:00
Move MXSerializer to unique namespace
- prevents dependency version from loading - patch MXSerializer to skip duplicate namespaces at same depth
This commit is contained in:
parent
dfbcf298c2
commit
429e18ac25
@ -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>
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user