Skip to content

Commit e5db9e4

Browse files
author
Noor Dawod
committed
multi-catch statement is not supported in -source 1.5.
1 parent 070372c commit e5db9e4

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

library/src/main/java/com/loopj/android/http/SaxAsyncHttpResponseHandler.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,9 @@ protected byte[] getResponseData(HttpEntity entity) throws IOException {
9898
rssReader.setContentHandler(handler);
9999
inputStreamReader = new InputStreamReader(instream, DEFAULT_CHARSET);
100100
rssReader.parse(new InputSource(inputStreamReader));
101-
} catch (SAXException | ParserConfigurationException e) {
101+
} catch (SAXException e) {
102+
Log.e(LOG_TAG, "getResponseData exception", e);
103+
} catch (ParserConfigurationException e) {
102104
Log.e(LOG_TAG, "getResponseData exception", e);
103105
} finally {
104106
AsyncHttpClient.silentCloseInputStream(instream);
@@ -107,7 +109,6 @@ protected byte[] getResponseData(HttpEntity entity) throws IOException {
107109
inputStreamReader.close();
108110
} catch (IOException e) { /*ignore*/ }
109111
}
110-
111112
}
112113
}
113114
}
@@ -142,4 +143,4 @@ public void onFailure(int statusCode, Header[] headers,
142143
byte[] responseBody, Throwable error) {
143144
onSuccess(statusCode, headers, handler);
144145
}
145-
}
146+
}

0 commit comments

Comments
 (0)