Skip to content

Commit

Permalink
util: remove useless null checks
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosame committed Sep 14, 2023
1 parent 8251986 commit 333198d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ public Document createDocument(String ns, String root, String uri, XMLReader r)
r.parse(uri);
} catch (SAXException e) {
Exception ex = e.getException();
if (ex != null && ex instanceof InterruptedIOException) {
if (ex instanceof InterruptedIOException) {
throw (InterruptedIOException) ex;
}
throw new SAXIOException(e);
Expand Down Expand Up @@ -555,7 +555,7 @@ protected Document createDocument(InputSource is) throws IOException {
parser.parse(is);
} catch (SAXException e) {
Exception ex = e.getException();
if (ex != null && ex instanceof InterruptedIOException) {
if (ex instanceof InterruptedIOException) {
throw (InterruptedIOException) ex;
}
throw new SAXIOException(e);
Expand Down

0 comments on commit 333198d

Please sign in to comment.