summaryrefslogtreecommitdiff
path: root/core/java/android
diff options
context:
space:
mode:
authorFelipe Leme <felipeal@google.com>2017-10-28 03:02:58 +0000
committerandroid-build-merger <android-build-merger@google.com>2017-10-28 03:02:58 +0000
commit36914931c0ece74ce75c3140b4bcb4bdf23cf83e (patch)
treef6648406935f837261621e8e8fd3bfa7f0fada27 /core/java/android
parent54e351b3cbf0caa10b3c48b5e0bd3b65ccb6bbb8 (diff)
parente72d655f1d40fcd8796dcdadf22bf62420cad69d (diff)
Merge "Minor fixes on SaveInfo javadoc." into oc-mr1-dev
am: e72d655f1d Change-Id: Ib3e6de8f42833f22bc50c949a0a346853485b130
Diffstat (limited to 'core/java/android')
-rw-r--r--core/java/android/service/autofill/SaveInfo.java17
1 files changed, 9 insertions, 8 deletions
diff --git a/core/java/android/service/autofill/SaveInfo.java b/core/java/android/service/autofill/SaveInfo.java
index e0a073050b6b..630e4500e695 100644
--- a/core/java/android/service/autofill/SaveInfo.java
+++ b/core/java/android/service/autofill/SaveInfo.java
@@ -477,14 +477,15 @@ public final class SaveInfo implements Parcelable {
* 16 digits, or 15 digits starting with 108:
*
* <pre class="prettyprint">
- * import android.service.autofill.Validators;
+ * import static android.service.autofill.Validators.and;
+ * import static android.service.autofill.Validators.or;
*
* Validator validator =
* and(
* new LuhnChecksumValidator(ccNumberId),
* or(
- * new RegexValidator(ccNumberId, Pattern.compile(""^\\d{16}$")),
- * new RegexValidator(ccNumberId, Pattern.compile(""^108\\d{12}$"))
+ * new RegexValidator(ccNumberId, Pattern.compile("^\\d{16}$")),
+ * new RegexValidator(ccNumberId, Pattern.compile("^108\\d{12}$"))
* )
* );
* </pre>
@@ -504,14 +505,14 @@ public final class SaveInfo implements Parcelable {
* 4 digits on each field:
*
* <pre class="prettyprint">
- * import android.service.autofill.Validators;
+ * import static android.service.autofill.Validators.and;
*
* Validator validator =
* and(
- * new RegexValidator(ccNumberId1, Pattern.compile(""^\\d{4}$")),
- * new RegexValidator(ccNumberId2, Pattern.compile(""^\\d{4}$")),
- * new RegexValidator(ccNumberId3, Pattern.compile(""^\\d{4}$")),
- * new RegexValidator(ccNumberId4, Pattern.compile(""^\\d{4}$"))
+ * new RegexValidator(ccNumberId1, Pattern.compile("^\\d{4}$")),
+ * new RegexValidator(ccNumberId2, Pattern.compile("^\\d{4}$")),
+ * new RegexValidator(ccNumberId3, Pattern.compile("^\\d{4}$")),
+ * new RegexValidator(ccNumberId4, Pattern.compile("^\\d{4}$"))
* );
* </pre>
*