[NAN] Fix bad merge use rethrowFromSystemServer
Added 'throw' to the 'e.rethrowXXX()'. Not needed but seems
to be the accepted style.
Change-Id: I75e42d68ee6092699a55e26ee05151373139606d
(cherry picked from commit cb34ec8f3a)
This commit is contained in:
committed by
Mitchell Wills
parent
07e317c3cd
commit
fc3c0a0582
@@ -257,7 +257,7 @@ public class WifiNanManager {
|
||||
try {
|
||||
mService.enableUsage();
|
||||
} catch (RemoteException e) {
|
||||
e.rethrowAsRuntimeException();
|
||||
throw e.rethrowFromSystemServer();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -272,7 +272,7 @@ public class WifiNanManager {
|
||||
try {
|
||||
mService.disableUsage();
|
||||
} catch (RemoteException e) {
|
||||
e.rethrowAsRuntimeException();
|
||||
throw e.rethrowFromSystemServer();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -286,10 +286,8 @@ public class WifiNanManager {
|
||||
try {
|
||||
return mService.isUsageEnabled();
|
||||
} catch (RemoteException e) {
|
||||
e.rethrowAsRuntimeException();
|
||||
throw e.rethrowFromSystemServer();
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -578,7 +576,7 @@ public class WifiNanManager {
|
||||
rangingKey = mService.startRanging(clientId, sessionId,
|
||||
new RttManager.ParcelableRttParams(params));
|
||||
} catch (RemoteException e) {
|
||||
e.rethrowAsRuntimeException();
|
||||
throw e.rethrowFromSystemServer();
|
||||
}
|
||||
|
||||
synchronized (mLock) {
|
||||
|
||||
Reference in New Issue
Block a user