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

Commit d1240219 authored by Alex Klyubin's avatar Alex Klyubin Committed by Gerrit Code Review
Browse files

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

parents 5fac913d 9ccebbfc
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;