Skip to content

Commit 929a895

Browse files
committed
Fixed Lint issues
1 parent ce7bb12 commit 929a895

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,6 @@ protected void postRunnable(Runnable runnable) {
425425
runnable.run();
426426
} else {
427427
// Otherwise, run on provided handler
428-
Utils.asserts(handler != null, "handler should not be null!");
429428
handler.post(runnable);
430429
}
431430
}

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,9 +199,9 @@ public void writeTo(final OutputStream out) throws IOException {
199199
} else if (value instanceof JsonValueInterface) {
200200
os.write(((JsonValueInterface) value).getEscapedJsonValue());
201201
} else if (value instanceof org.json.JSONObject) {
202-
os.write(((org.json.JSONObject) value).toString().getBytes());
202+
os.write(value.toString().getBytes());
203203
} else if (value instanceof org.json.JSONArray) {
204-
os.write(((org.json.JSONArray) value).toString().getBytes());
204+
os.write(value.toString().getBytes());
205205
} else if (value instanceof Boolean) {
206206
os.write((Boolean) value ? JSON_TRUE : JSON_FALSE);
207207
} else if (value instanceof Long) {

0 commit comments

Comments
 (0)