From a11137d4ae50614a004ff48e1ea8569e37672f19 Mon Sep 17 00:00:00 2001 From: Peter Kalauskas Date: Thu, 8 Jun 2023 12:55:34 -0700 Subject: [PATCH] Fix invalid code link, update exception message Update RuntimeException message to use the correct method name (sendMessageAtFrontOfQueue() instead of sendMessageAtTime()). Fix code reference in comment. Test: m Change-Id: I0c736c8871d8af4778a688d5c77a413e72b81880 --- core/java/android/os/Handler.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/java/android/os/Handler.java b/core/java/android/os/Handler.java index 55b7a7d56eb4b..d6a0690a71e50 100644 --- a/core/java/android/os/Handler.java +++ b/core/java/android/os/Handler.java @@ -182,7 +182,7 @@ public class Handler { * * Asynchronous messages represent interrupts or events that do not require global ordering * with respect to synchronous messages. Asynchronous messages are not subject to - * the synchronization barriers introduced by {@link MessageQueue#enqueueSyncBarrier(long)}. + * the synchronization barriers introduced by {@link MessageQueue#postSyncBarrier()}. * * @param async If true, the handler calls {@link Message#setAsynchronous(boolean)} for * each {@link Message} that is sent to it or {@link Runnable} that is posted to it. @@ -203,7 +203,7 @@ public class Handler { * * Asynchronous messages represent interrupts or events that do not require global ordering * with respect to synchronous messages. Asynchronous messages are not subject to - * the synchronization barriers introduced by {@link MessageQueue#enqueueSyncBarrier(long)}. + * the synchronization barriers introduced by {@link MessageQueue#postSyncBarrier()}. * * @param callback The callback interface in which to handle messages, or null. * @param async If true, the handler calls {@link Message#setAsynchronous(boolean)} for @@ -743,7 +743,7 @@ public class Handler { MessageQueue queue = mQueue; if (queue == null) { RuntimeException e = new RuntimeException( - this + " sendMessageAtTime() called with no mQueue"); + this + " sendMessageAtFrontOfQueue() called with no mQueue"); Log.w("Looper", e.getMessage(), e); return false; }