OSDN Git Service
(root)
/
android-x86
/
frameworks-base.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
35a827b
)
Checks for null id on LocusId constructor.
author
Felipe Leme
<felipeal@google.com>
Tue, 5 Mar 2019 17:41:03 +0000
(09:41 -0800)
committer
Felipe Leme
<felipeal@google.com>
Tue, 5 Mar 2019 17:41:22 +0000
(09:41 -0800)
Test: atest CtsContentTestCases:LocusIdTest
Bug:
126945732
Change-Id: Ifbffae6cc287861f78d19921b35a26e624038168
core/java/android/content/LocusId.java
patch
|
blob
|
history
diff --git
a/core/java/android/content/LocusId.java
b/core/java/android/content/LocusId.java
index
3d1ddc3
..
c67ff7c
100644
(file)
--- a/
core/java/android/content/LocusId.java
+++ b/
core/java/android/content/LocusId.java
@@
-37,9
+37,11
@@
public final class LocusId implements Parcelable {
/**
* Default constructor.
+ *
+ * @throws IllegalArgumentException if {@code id} is empty or {@code null}.
*/
public LocusId(@NonNull String id) {
- mId = Preconditions.check
NotNull(id
);
+ mId = Preconditions.check
StringNotEmpty(id, "id cannot be empty"
);
}
/**