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

This commit is contained in:
Alex Klyubin
2016-01-07 19:08:26 +00:00
committed by Gerrit Code Review
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;