Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0f2d6c69 authored by Tom O'Neill's avatar Tom O'Neill Committed by Android (Google) Code Review
Browse files

Merge "Remove inappropriate conversion of IOException to AssertionError"

parents 7f7bd525 28e3f101
Loading
Loading
Loading
Loading
+5 −9
Original line number Diff line number Diff line
@@ -79,15 +79,11 @@ public class Xml {
     */
    public static void parse(InputStream in, Encoding encoding,
            ContentHandler contentHandler) throws IOException, SAXException {
        try {
        XMLReader reader = new ExpatReader();
        reader.setContentHandler(contentHandler);
        InputSource source = new InputSource(in);
        source.setEncoding(encoding.expatName);
        reader.parse(source);
        } catch (IOException e) {
            throw new AssertionError(e);
        }
    }

    /**