Merge "[1/3] Remove unnecessary throws statement in ServiceManager"

am: d1240219aa

* commit 'd1240219aadedc867b50158c67d1737a27fa7c6f':
  [1/3] Remove unnecessary throws statement in ServiceManager
This commit is contained in:
Alex Klyubin
2016-01-07 19:18:01 +00:00
committed by android-build-merger
2 changed files with 6 additions and 2 deletions

View File

@@ -112,8 +112,10 @@ public final class ServiceManager {
/**
* Return a list of all currently running services.
* @return an array of all currently running services, or <code>null</code> in
* case of an exception
*/
public static String[] listServices() throws RemoteException {
public static String[] listServices() {
try {
return getIServiceManager().listServices();
} catch (RemoteException e) {

View File

@@ -51,8 +51,10 @@ public final class ServiceManager {
/**
* Return a list of all currently running services.
* @return an array of all currently running services, or <code>null</code> in
* case of an exception
*/
public static String[] listServices() throws RemoteException {
public static String[] listServices() {
// actual implementation returns null sometimes, so it's ok
// to return null instead of an empty list.
return null;