diff options
author | Nicolas Geoffray <ngeoffray@google.com> | 2019-03-08 02:27:54 +0000 |
---|---|---|
committer | Nicolas Geoffray <ngeoffray@google.com> | 2019-03-08 14:49:13 +0000 |
commit | 2b0f6d7b7628d44af8a9f0bc75f7ccb967d2195d (patch) | |
tree | c9cd145ca75f1ebd1901129133dcaa3f7b1bcd8c /dalvik | |
parent | 36aa0fdc9f92d0f95d0e370a8145e7524c91b983 (diff) |
Add Nullable annotations to DelegateLastClassLoader new API.
Bug: 126703375
Test: m
Change-Id: I38408f90602f8826fcbc885e68385e7aa8cad8f3
Diffstat (limited to 'dalvik')
-rw-r--r-- | dalvik/src/main/java/dalvik/system/DelegateLastClassLoader.java | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/dalvik/src/main/java/dalvik/system/DelegateLastClassLoader.java b/dalvik/src/main/java/dalvik/system/DelegateLastClassLoader.java index 2938b85bc4..9481e3f940 100644 --- a/dalvik/src/main/java/dalvik/system/DelegateLastClassLoader.java +++ b/dalvik/src/main/java/dalvik/system/DelegateLastClassLoader.java @@ -22,6 +22,9 @@ import java.io.IOException; import java.net.URL; import java.util.Enumeration; +import libcore.util.NonNull; +import libcore.util.Nullable; + /** * A {@code ClassLoader} implementation that implements a <b>delegate last</b> lookup policy. * For every class or resource this loader is requested to load, the following lookup order @@ -88,14 +91,14 @@ public final class DelegateLastClassLoader extends PathClassLoader { * {@code File.pathSeparator}, which defaults to {@code ":"} on Android. * @param librarySearchPath the list of directories containing native libraries, delimited * by {@code File.pathSeparator}; may be {@code null}. - * @param parent the parent class loader + * @param parent the parent class loader. May be {@code null} for the boot classloader. * @param delegateResourceLoading whether to delegate resource loading to the parent if * the resource is not found. This does not affect class * loading delegation. */ - public DelegateLastClassLoader(String dexPath, String librarySearchPath, ClassLoader parent, - boolean delegateResourceLoading) { + public DelegateLastClassLoader(@NonNull String dexPath, @Nullable String librarySearchPath, + @Nullable ClassLoader parent, boolean delegateResourceLoading) { super(dexPath, librarySearchPath, parent); this.delegateResourceLoading = delegateResourceLoading; } |