[1/3] Remove unnecessary throws statement in ServiceManager

The exception is already caught by the try-catch block.

Change-Id: I0c10fe51d12a10cbc02a25c719d03a4ba6497767
Signed-off-by: Umair Khan <omerjerk@gmail.com>
This commit is contained in:
Umair Khan
2016-01-06 19:47:20 +05:30
parent 2786002bd5
commit 9ccebbfc37
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;