Skip to content

Commit

Permalink
refactor: drop unused exceptions (#2746)
Browse files Browse the repository at this point in the history
  • Loading branch information
iBotPeaches committed Jan 18, 2022
1 parent 797fc3e commit a269a8e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
Expand Up @@ -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;
Expand All @@ -25,11 +24,9 @@

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");
}
Expand Down
Expand Up @@ -60,7 +60,7 @@ public String encodeAsResXmlNonEscapedItemValue() throws AndrolibException {
return encodeAsResXmlValue().replace("&amp;", "&").replace("&lt;","<");
}

public boolean hasMultipleNonPositionalSubstitutions() throws AndrolibException {
public boolean hasMultipleNonPositionalSubstitutions() {
return ResXmlEncoders.hasMultipleNonPositionalSubstitutions(mRawValue);
}

Expand Down

0 comments on commit a269a8e

Please sign in to comment.