Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9ccebbfc authored by Umair Khan's avatar Umair Khan
Browse files

[1/3] Remove unnecessary throws statement in ServiceManager



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

Change-Id: I0c10fe51d12a10cbc02a25c719d03a4ba6497767
Signed-off-by: default avatarUmair Khan <omerjerk@gmail.com>
parent 2786002b
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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) {
+3 −1
Original line number Diff line number Diff line
@@ -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;