Merge "[1/3] Remove unnecessary throws statement in ServiceManager"
This commit is contained in:
@@ -112,8 +112,10 @@ public final class ServiceManager {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Return a list of all currently running services.
|
* 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 {
|
try {
|
||||||
return getIServiceManager().listServices();
|
return getIServiceManager().listServices();
|
||||||
} catch (RemoteException e) {
|
} catch (RemoteException e) {
|
||||||
|
|||||||
@@ -51,8 +51,10 @@ public final class ServiceManager {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Return a list of all currently running services.
|
* 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
|
// actual implementation returns null sometimes, so it's ok
|
||||||
// to return null instead of an empty list.
|
// to return null instead of an empty list.
|
||||||
return null;
|
return null;
|
||||||
|
|||||||
Reference in New Issue
Block a user