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

Commit 440824f7 authored by Nathan Harold's avatar Nathan Harold
Browse files

Fix signature for finalize() to resolve API Lint error

The API linter on goog/master noticed that this method is
listed in the public API even though it's protected. The
change is probably related to a signature change from the
internal finalize method which throws a Throwable. Fix the
method in IpSecManager to throw Throwable, which should
fix the current.txt and resolve the lint error.

Bug: 69006767
Test: compilation, make update-api
Change-Id: I173d014baaa505c365b7916fcb52f2a8b4af9373
parent 45183fc5
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -25557,7 +25557,6 @@ package android.net {
  public static final class IpSecManager.SecurityParameterIndex implements java.lang.AutoCloseable {
    method public void close();
    method protected void finalize();
    method public int getSpi();
  }
+0 −1
Original line number Diff line number Diff line
@@ -25667,7 +25667,6 @@ package android.net {
  public static final class IpSecManager.SecurityParameterIndex implements java.lang.AutoCloseable {
    method public void close();
    method protected void finalize();
    method public int getSpi();
  }
+1 −1
Original line number Diff line number Diff line
@@ -136,7 +136,7 @@ public final class IpSecManager {
        }

        @Override
        protected void finalize() {
        protected void finalize() throws Throwable {
            if (mCloseGuard != null) {
                mCloseGuard.warnIfOpen();
            }