refactor: drop unused exceptions (#2746)

This commit is contained in:
Connor Tumbleson 2022-01-18 08:18:33 -05:00 committed by GitHub
parent 797fc3e332
commit a269a8e0d5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 6 deletions

View File

@ -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");
}

View File

@ -60,7 +60,7 @@ public abstract class ResScalarValue extends ResIntBasedValue implements
return encodeAsResXmlValue().replace("&amp;", "&").replace("&lt;","<");
}
public boolean hasMultipleNonPositionalSubstitutions() throws AndrolibException {
public boolean hasMultipleNonPositionalSubstitutions() {
return ResXmlEncoders.hasMultipleNonPositionalSubstitutions(mRawValue);
}