diff options
author | Elliott Hughes <enh@google.com> | 2015-02-07 16:34:43 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2015-02-07 16:34:44 +0000 |
commit | c512e722651ab516a01d84aacd93f264c09f5175 (patch) | |
tree | 8df671637d180586907621865b09b7054ae805c4 | |
parent | 0951821efa25eed9d7b4372ee7ee8ac063682c68 (diff) | |
parent | 58967d946493826848ff23fa3e27635a29ea6f2b (diff) | |
download | libcore-c512e722651ab516a01d84aacd93f264c09f5175.zip libcore-c512e722651ab516a01d84aacd93f264c09f5175.tar.gz libcore-c512e722651ab516a01d84aacd93f264c09f5175.tar.bz2 |
Merge "Explicitly state all File constructor NPEs."
-rw-r--r-- | luni/src/main/java/java/io/File.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/luni/src/main/java/java/io/File.java b/luni/src/main/java/java/io/File.java index a07d34c..0592345 100644 --- a/luni/src/main/java/java/io/File.java +++ b/luni/src/main/java/java/io/File.java @@ -123,6 +123,8 @@ public class File implements Serializable, Comparable<File> { * * @param path * the path to be used for the file. + * @throws NullPointerException + * if {@code path} is {@code null}. */ public File(String path) { this.path = fixSlashes(path); @@ -161,6 +163,8 @@ public class File implements Serializable, Comparable<File> { * @param uri * the Unified Resource Identifier that is used to construct this * file. + * @throws NullPointerException + * if {@code uri == null}. * @throws IllegalArgumentException * if {@code uri} does not comply with the conditions above. * @see #toURI |