summaryrefslogtreecommitdiff
path: root/libart
diff options
context:
space:
mode:
authorPaul Duffin <paulduffin@google.com>2018-11-22 12:50:52 +0000
committerPaul Duffin <paulduffin@google.com>2018-11-22 13:36:01 +0000
commit560c24a95368d6b8e1a9eae2ced534abb6805637 (patch)
treede88c2bf1bce4f43b5ab445138ae82a4d264b0e8 /libart
parenta22340febaa676c9e848ca4f05d112a97be376d3 (diff)
Add missing default constructors
Metalava was accidentally including default constructors in the API generated for CorePlatformApi and IntraCoreApi annotations. This change adds the constructor and appropriate annotations to allow the metalava bug to be fixed without changing the API. Tested by building the API with and without the Metalava fix and checking that they were the same apart from removing the constructors for the following classes as they are not required in the API because the classes are never meant to be instantiated: * dalvik.system.VMSTack * libcore.icu.ICU * libcore.io.DropBox * libcore.io.EventLogger * libcore.net.MimeUtils * libcore.util.SneakyThrow Bug: 119859108 Test: see above Change-Id: I87cdb60827edbc2703b9b8723e873aa49c82d9cf
Diffstat (limited to 'libart')
-rw-r--r--libart/src/main/java/dalvik/system/VMStack.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/libart/src/main/java/dalvik/system/VMStack.java b/libart/src/main/java/dalvik/system/VMStack.java
index a76ce09f39..d84fef677f 100644
--- a/libart/src/main/java/dalvik/system/VMStack.java
+++ b/libart/src/main/java/dalvik/system/VMStack.java
@@ -27,6 +27,10 @@ import dalvik.annotation.optimization.FastNative;
*/
@libcore.api.CorePlatformApi
public final class VMStack {
+
+ private VMStack() {
+ }
+
/**
* Returns the defining class loader of the caller's caller.
*