Merge "Remove garbage spaces"

This commit is contained in:
Mathew Inwood
2020-05-20 09:01:15 +00:00
committed by Gerrit Code Review
2 changed files with 7 additions and 10 deletions

View File

@@ -46,7 +46,7 @@ public class Registrant
{
internalNotifyRegistrant (null, null);
}
@UnsupportedAppUsage
public void
notifyResult(Object result)
@@ -81,9 +81,7 @@ public class Registrant
Message msg = Message.obtain();
msg.what = what;
msg.obj = new AsyncResult(userObj, result, exception);
h.sendMessage(msg);
}
}
@@ -126,4 +124,3 @@ public class Registrant
int what;
Object userObj;
}

View File

@@ -42,9 +42,9 @@ public class RegistrantList
{
// if the handler is already in the registrant list, remove it
remove(h);
add(new Registrant(h, what, obj));
add(new Registrant(h, what, obj));
}
@UnsupportedAppUsage
public synchronized void
add(Registrant r)
@@ -59,7 +59,7 @@ public class RegistrantList
{
for (int i = registrants.size() - 1; i >= 0 ; i--) {
Registrant r = (Registrant) registrants.get(i);
if (r.refH == null) {
registrants.remove(i);
}
@@ -88,7 +88,7 @@ public class RegistrantList
r.internalNotifyRegistrant(result, exception);
}
}
@UnsupportedAppUsage
public /*synchronized*/ void
notifyRegistrants()
@@ -109,14 +109,14 @@ public class RegistrantList
internalNotifyRegistrants (result, null);
}
@UnsupportedAppUsage
public /*synchronized*/ void
notifyRegistrants(AsyncResult ar)
{
internalNotifyRegistrants(ar.result, ar.exception);
}
@UnsupportedAppUsage
public synchronized void
remove(Handler h)