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

Commit 984cc0ca authored by Remi NGUYEN VAN's avatar Remi NGUYEN VAN
Browse files

Remove hidden INVALID_RESOURCE_ID in unused param

INVALID_RESOURCE_ID is a hidden API so its usage should be avoided.
The current usage is for an unused parameter, so just use a literal instead.

Bug: 182451544
Change-Id: I066d9c34f735434adee4ee72e8a7fe1ceb900c3c
Test: m
parent 78cf2f60
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -16,7 +16,6 @@
package android.net;

import static android.annotation.SystemApi.Client.MODULE_LIBRARIES;
import static android.net.IpSecManager.INVALID_RESOURCE_ID;
import static android.net.NetworkRequest.Type.BACKGROUND_REQUEST;
import static android.net.NetworkRequest.Type.LISTEN;
import static android.net.NetworkRequest.Type.REQUEST;
@@ -1996,7 +1995,7 @@ public class ConnectivityManager {
            dup = createInvalidFd();
        }
        return new NattSocketKeepalive(mService, network, dup,
                INVALID_RESOURCE_ID /* Unused */, source, destination, executor, callback);
                -1 /* Unused */, source, destination, executor, callback);
    }

    /**