File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed
library/src/main/java/com/loopj/android/http Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -425,7 +425,6 @@ protected void postRunnable(Runnable runnable) {
425
425
runnable .run ();
426
426
} else {
427
427
// Otherwise, run on provided handler
428
- Utils .asserts (handler != null , "handler should not be null!" );
429
428
handler .post (runnable );
430
429
}
431
430
}
Original file line number Diff line number Diff line change @@ -199,9 +199,9 @@ public void writeTo(final OutputStream out) throws IOException {
199
199
} else if (value instanceof JsonValueInterface ) {
200
200
os .write (((JsonValueInterface ) value ).getEscapedJsonValue ());
201
201
} else if (value instanceof org .json .JSONObject ) {
202
- os .write ((( org . json . JSONObject ) value ) .toString ().getBytes ());
202
+ os .write (value .toString ().getBytes ());
203
203
} else if (value instanceof org .json .JSONArray ) {
204
- os .write ((( org . json . JSONArray ) value ) .toString ().getBytes ());
204
+ os .write (value .toString ().getBytes ());
205
205
} else if (value instanceof Boolean ) {
206
206
os .write ((Boolean ) value ? JSON_TRUE : JSON_FALSE );
207
207
} else if (value instanceof Long ) {
You can’t perform that action at this time.
0 commit comments