diff --git a/brut.apktool/apktool-lib/src/main/java/brut/androlib/res/data/value/ResIdValue.java b/brut.apktool/apktool-lib/src/main/java/brut/androlib/res/data/value/ResIdValue.java index c14c89f1..dc4271ab 100644 --- a/brut.apktool/apktool-lib/src/main/java/brut/androlib/res/data/value/ResIdValue.java +++ b/brut.apktool/apktool-lib/src/main/java/brut/androlib/res/data/value/ResIdValue.java @@ -16,7 +16,6 @@ */ package brut.androlib.res.data.value; -import brut.androlib.AndrolibException; import brut.androlib.res.data.ResResource; import brut.androlib.res.xml.ResValuesXmlSerializable; import org.xmlpull.v1.XmlSerializer; @@ -25,11 +24,9 @@ import java.io.IOException; public class ResIdValue extends ResValue implements ResValuesXmlSerializable { @Override - public void serializeToResValuesXml(XmlSerializer serializer, - ResResource res) throws IOException, AndrolibException { + public void serializeToResValuesXml(XmlSerializer serializer, ResResource res) throws IOException { serializer.startTag(null, "item"); - serializer - .attribute(null, "type", res.getResSpec().getType().getName()); + serializer.attribute(null, "type", res.getResSpec().getType().getName()); serializer.attribute(null, "name", res.getResSpec().getName()); serializer.endTag(null, "item"); } diff --git a/brut.apktool/apktool-lib/src/main/java/brut/androlib/res/data/value/ResScalarValue.java b/brut.apktool/apktool-lib/src/main/java/brut/androlib/res/data/value/ResScalarValue.java index 2490b7b6..4331e193 100644 --- a/brut.apktool/apktool-lib/src/main/java/brut/androlib/res/data/value/ResScalarValue.java +++ b/brut.apktool/apktool-lib/src/main/java/brut/androlib/res/data/value/ResScalarValue.java @@ -60,7 +60,7 @@ public abstract class ResScalarValue extends ResIntBasedValue implements return encodeAsResXmlValue().replace("&", "&").replace("<","<"); } - public boolean hasMultipleNonPositionalSubstitutions() throws AndrolibException { + public boolean hasMultipleNonPositionalSubstitutions() { return ResXmlEncoders.hasMultipleNonPositionalSubstitutions(mRawValue); }