mirror of
https://github.com/revanced/Apktool.git
synced 2025-01-22 09:47:34 +01:00
refactor: drop unused exceptions (#2746)
This commit is contained in:
parent
797fc3e332
commit
a269a8e0d5
@ -16,7 +16,6 @@
|
|||||||
*/
|
*/
|
||||||
package brut.androlib.res.data.value;
|
package brut.androlib.res.data.value;
|
||||||
|
|
||||||
import brut.androlib.AndrolibException;
|
|
||||||
import brut.androlib.res.data.ResResource;
|
import brut.androlib.res.data.ResResource;
|
||||||
import brut.androlib.res.xml.ResValuesXmlSerializable;
|
import brut.androlib.res.xml.ResValuesXmlSerializable;
|
||||||
import org.xmlpull.v1.XmlSerializer;
|
import org.xmlpull.v1.XmlSerializer;
|
||||||
@ -25,11 +24,9 @@ import java.io.IOException;
|
|||||||
|
|
||||||
public class ResIdValue extends ResValue implements ResValuesXmlSerializable {
|
public class ResIdValue extends ResValue implements ResValuesXmlSerializable {
|
||||||
@Override
|
@Override
|
||||||
public void serializeToResValuesXml(XmlSerializer serializer,
|
public void serializeToResValuesXml(XmlSerializer serializer, ResResource res) throws IOException {
|
||||||
ResResource res) throws IOException, AndrolibException {
|
|
||||||
serializer.startTag(null, "item");
|
serializer.startTag(null, "item");
|
||||||
serializer
|
serializer.attribute(null, "type", res.getResSpec().getType().getName());
|
||||||
.attribute(null, "type", res.getResSpec().getType().getName());
|
|
||||||
serializer.attribute(null, "name", res.getResSpec().getName());
|
serializer.attribute(null, "name", res.getResSpec().getName());
|
||||||
serializer.endTag(null, "item");
|
serializer.endTag(null, "item");
|
||||||
}
|
}
|
||||||
|
@ -60,7 +60,7 @@ public abstract class ResScalarValue extends ResIntBasedValue implements
|
|||||||
return encodeAsResXmlValue().replace("&", "&").replace("<","<");
|
return encodeAsResXmlValue().replace("&", "&").replace("<","<");
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean hasMultipleNonPositionalSubstitutions() throws AndrolibException {
|
public boolean hasMultipleNonPositionalSubstitutions() {
|
||||||
return ResXmlEncoders.hasMultipleNonPositionalSubstitutions(mRawValue);
|
return ResXmlEncoders.hasMultipleNonPositionalSubstitutions(mRawValue);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user