aboutsummaryrefslogtreecommitdiff
path: root/api
diff options
context:
space:
mode:
authorPaul Duffin <paulduffin@google.com>2023-10-10 17:51:55 +0100
committerPaul Duffin <paulduffin@google.com>2023-10-10 17:51:55 +0100
commit186e350c73721b6a7cc2ffa7b2e5e4659da4fe9e (patch)
tree6b37f49f4154be0ced06adf954be88a934981c47 /api
parent478cd8e9b732bc8a86644265c21dbabdd39cbf11 (diff)
downloadlibcore-186e350c73721b6a7cc2ffa7b2e5e4659da4fe9e.tar.gz
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 Change-Id: Idebed54fe6c99436ff1938567b26a18f57441d78
Diffstat (limited to 'api')
-rw-r--r--api/current.txt2
-rw-r--r--api/module-lib-current.txt2
-rw-r--r--api/module-lib-removed.txt2
-rw-r--r--api/removed.txt2
-rw-r--r--api/system-current.txt2
-rw-r--r--api/system-removed.txt2
6 files changed, 12 insertions, 0 deletions
diff --git a/api/current.txt b/api/current.txt
index 669abc0fb37..0bcf532c7ff 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 52285e81e6c..a172530b766 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 d802177e249..14191ebcb08 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 9c70cefdd27..0eb88ac06e0 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 d802177e249..14191ebcb08 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 d802177e249..14191ebcb08 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