From 9f6284e866b8336c0d74e848296fbb7e932b3461 Mon Sep 17 00:00:00 2001 From: Arthur Ishiguro Date: Wed, 10 Oct 2018 11:09:02 -0700 Subject: [PATCH] Simplify binderDied() method Equivalent functionality, since we are calling a local method. Bug: 111365315 Test: Compile only Change-Id: I7289ab5797e9cbba029dac360668b951fb00b13e --- .../android/server/location/ContextHubClientBroker.java | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/services/core/java/com/android/server/location/ContextHubClientBroker.java b/services/core/java/com/android/server/location/ContextHubClientBroker.java index 7a1da662961c2..b29b7cf5a7124 100644 --- a/services/core/java/com/android/server/location/ContextHubClientBroker.java +++ b/services/core/java/com/android/server/location/ContextHubClientBroker.java @@ -147,12 +147,9 @@ public class ContextHubClientBroker extends IContextHubClient.Stub /** * Invoked when the underlying binder of this broker has died at the client process. */ + @Override public void binderDied() { - try { - IContextHubClient.Stub.asInterface(this).close(); - } catch (RemoteException e) { - Log.e(TAG, "RemoteException while closing client on death", e); - } + close(); } /**