Prepare for keeping concrete overrides of abstract methods
Currently, metalava will discard concrete overrides of abstract methods
from the API signature files which causes problems when attempting to
generate stubs from those files and also discards information that may
be important in API reviews. This change is the first step in the
process of changing that behavior.
This change hard codes the current behavior for discarding the concrete
overrides (`add-additional-overrides=no`) into those signature files
that will (or are likely) to be affected by the change in behavior.
That allows the default behavior to be changed for all the other files
without affecting these.
Follow up changes will remove the hard coding from the signature files
and will update the contents which will include the concrete overrides
of the abstract methods.
More information and the background for this change is available at
go/add-overriding-one-pager.
Test: m checkapi
Bug: 299366704
(cherry picked from https://android-review.googlesource.com/q/commit:186e350c73721b6a7cc2ffa7b2e5e4659da4fe9e)
Merged-In: Idebed54fe6c99436ff1938567b26a18f57441d78
Change-Id: Idebed54fe6c99436ff1938567b26a18f57441d78
diff --git a/api/current.txt b/api/current.txt
index b23f9d2..a7076ef 100644
--- a/api/current.txt
+++ b/api/current.txt
@@ -1,4 +1,6 @@
// Signature format: 2.0
+// - add-additional-overrides=no
+// - migrating=Migration in progress see b/299366704
package android.system {
public final class ErrnoException extends java.lang.Exception {
diff --git a/api/module-lib-current.txt b/api/module-lib-current.txt
index ffb05b3..2e0014c 100644
--- a/api/module-lib-current.txt
+++ b/api/module-lib-current.txt
@@ -1,4 +1,6 @@
// Signature format: 2.0
+// - add-additional-overrides=no
+// - migrating=Migration in progress see b/299366704
package android.compat {
public final class Compatibility {
diff --git a/api/module-lib-removed.txt b/api/module-lib-removed.txt
index d802177..14191eb 100644
--- a/api/module-lib-removed.txt
+++ b/api/module-lib-removed.txt
@@ -1 +1,3 @@
// Signature format: 2.0
+// - add-additional-overrides=no
+// - migrating=Migration in progress see b/299366704
diff --git a/api/removed.txt b/api/removed.txt
index 9c70cef..0eb88ac 100644
--- a/api/removed.txt
+++ b/api/removed.txt
@@ -1,4 +1,6 @@
// Signature format: 2.0
+// - add-additional-overrides=no
+// - migrating=Migration in progress see b/299366704
package java.lang {
public class Runtime {
diff --git a/api/system-current.txt b/api/system-current.txt
index d802177..14191eb 100644
--- a/api/system-current.txt
+++ b/api/system-current.txt
@@ -1 +1,3 @@
// Signature format: 2.0
+// - add-additional-overrides=no
+// - migrating=Migration in progress see b/299366704
diff --git a/api/system-removed.txt b/api/system-removed.txt
index d802177..14191eb 100644
--- a/api/system-removed.txt
+++ b/api/system-removed.txt
@@ -1 +1,3 @@
// Signature format: 2.0
+// - add-additional-overrides=no
+// - migrating=Migration in progress see b/299366704