Make MailTo class final
This class should not be extended.
Test: ./gradlew checkApi
Fixes: 161229348
Relnote: n/a
Change-Id: If10630bfaa34704e6cbcfcec9bf91b5a2a51eaab
diff --git a/core/core/api/1.5.0-alpha01.txt b/core/core/api/1.5.0-alpha01.txt
index 9ab98ab..6d66e2b 100644
--- a/core/core/api/1.5.0-alpha01.txt
+++ b/core/core/api/1.5.0-alpha01.txt
@@ -1366,7 +1366,7 @@
field public static final int RESTRICT_BACKGROUND_STATUS_WHITELISTED = 2; // 0x2
}
- public class MailTo {
+ public final class MailTo {
method public String? getBcc();
method public String? getBody();
method public String? getCc();
diff --git a/core/core/api/current.txt b/core/core/api/current.txt
index 9ab98ab..6d66e2b 100644
--- a/core/core/api/current.txt
+++ b/core/core/api/current.txt
@@ -1366,7 +1366,7 @@
field public static final int RESTRICT_BACKGROUND_STATUS_WHITELISTED = 2; // 0x2
}
- public class MailTo {
+ public final class MailTo {
method public String? getBcc();
method public String? getBody();
method public String? getCc();
diff --git a/core/core/api/public_plus_experimental_1.5.0-alpha01.txt b/core/core/api/public_plus_experimental_1.5.0-alpha01.txt
index dc5b6da..d1bd73f 100644
--- a/core/core/api/public_plus_experimental_1.5.0-alpha01.txt
+++ b/core/core/api/public_plus_experimental_1.5.0-alpha01.txt
@@ -1364,7 +1364,7 @@
field public static final int RESTRICT_BACKGROUND_STATUS_WHITELISTED = 2; // 0x2
}
- public class MailTo {
+ public final class MailTo {
method public String? getBcc();
method public String? getBody();
method public String? getCc();
diff --git a/core/core/api/public_plus_experimental_current.txt b/core/core/api/public_plus_experimental_current.txt
index dc5b6da..d1bd73f 100644
--- a/core/core/api/public_plus_experimental_current.txt
+++ b/core/core/api/public_plus_experimental_current.txt
@@ -1364,7 +1364,7 @@
field public static final int RESTRICT_BACKGROUND_STATUS_WHITELISTED = 2; // 0x2
}
- public class MailTo {
+ public final class MailTo {
method public String? getBcc();
method public String? getBody();
method public String? getCc();
diff --git a/core/core/api/restricted_1.5.0-alpha01.txt b/core/core/api/restricted_1.5.0-alpha01.txt
index 74b99b7..87a9f67 100644
--- a/core/core/api/restricted_1.5.0-alpha01.txt
+++ b/core/core/api/restricted_1.5.0-alpha01.txt
@@ -1669,7 +1669,7 @@
@IntDef({androidx.core.net.ConnectivityManagerCompat.RESTRICT_BACKGROUND_STATUS_DISABLED, androidx.core.net.ConnectivityManagerCompat.RESTRICT_BACKGROUND_STATUS_WHITELISTED, androidx.core.net.ConnectivityManagerCompat.RESTRICT_BACKGROUND_STATUS_ENABLED}) @RestrictTo(androidx.annotation.RestrictTo.Scope.LIBRARY_GROUP_PREFIX) @java.lang.annotation.Retention(java.lang.annotation.RetentionPolicy.SOURCE) public static @interface ConnectivityManagerCompat.RestrictBackgroundStatus {
}
- public class MailTo {
+ public final class MailTo {
method public String? getBcc();
method public String? getBody();
method public String? getCc();
diff --git a/core/core/api/restricted_current.txt b/core/core/api/restricted_current.txt
index 74b99b7..87a9f67 100644
--- a/core/core/api/restricted_current.txt
+++ b/core/core/api/restricted_current.txt
@@ -1669,7 +1669,7 @@
@IntDef({androidx.core.net.ConnectivityManagerCompat.RESTRICT_BACKGROUND_STATUS_DISABLED, androidx.core.net.ConnectivityManagerCompat.RESTRICT_BACKGROUND_STATUS_WHITELISTED, androidx.core.net.ConnectivityManagerCompat.RESTRICT_BACKGROUND_STATUS_ENABLED}) @RestrictTo(androidx.annotation.RestrictTo.Scope.LIBRARY_GROUP_PREFIX) @java.lang.annotation.Retention(java.lang.annotation.RetentionPolicy.SOURCE) public static @interface ConnectivityManagerCompat.RestrictBackgroundStatus {
}
- public class MailTo {
+ public final class MailTo {
method public String? getBcc();
method public String? getBody();
method public String? getCc();
diff --git a/core/core/src/main/java/androidx/core/net/MailTo.java b/core/core/src/main/java/androidx/core/net/MailTo.java
index c941f5d..758ba47 100644
--- a/core/core/src/main/java/androidx/core/net/MailTo.java
+++ b/core/core/src/main/java/androidx/core/net/MailTo.java
@@ -32,7 +32,7 @@
* <p>This class parses a mailto scheme URI and then can be queried for the parsed parameters.
* This implements RFC 6068.
*/
-public class MailTo {
+public final class MailTo {
public static final String MAILTO_SCHEME = "mailto:";
// Well known headers