Skip to content

Commit f751210

Browse files
Romain GuyAndroid (Google) Code Review
authored andcommitted
Merge "Fix the build"
2 parents df61887 + 4db2504 commit f751210

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

core/java/android/os/AsyncTask.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -282,6 +282,7 @@ public Result call() throws Exception {
282282
mTaskInvoked.set(true);
283283

284284
Process.setThreadPriority(Process.THREAD_PRIORITY_BACKGROUND);
285+
//noinspection unchecked
285286
return postResult(doInBackground(mParams));
286287
}
287288
};
@@ -316,12 +317,8 @@ private void postResultIfNotInvoked(Result result) {
316317
}
317318

318319
private Result postResult(Result result) {
319-
<<<<<<< HEAD
320-
Message message = sHandler.obtainMessage(MESSAGE_POST_RESULT,
321-
=======
322320
@SuppressWarnings({"unchecked"})
323321
Message message = mHandler.obtainMessage(MESSAGE_POST_RESULT,
324-
>>>>>>> 6c0d0b8... Check whether an AsyncTask is created/executed on a looper thread.
325322
new AsyncTaskResult<Result>(this, result));
326323
message.sendToTarget();
327324
return result;

0 commit comments

Comments
 (0)