diff options
author | Andreas Gampe <agampe@google.com> | 2015-04-20 21:05:36 -0700 |
---|---|---|
committer | Andreas Gampe <agampe@google.com> | 2015-04-20 21:32:01 -0700 |
commit | df22ac586a1eab0cfaddd2c62f3b71ed74838b21 (patch) | |
tree | eeea715b7dd9853f2ed53eca86fa6e20c1171784 /libart | |
parent | 6e117b89a451008286947c566ca3f90a1dc9f35b (diff) | |
download | libcore-df22ac586a1eab0cfaddd2c62f3b71ed74838b21.zip libcore-df22ac586a1eab0cfaddd2c62f3b71ed74838b21.tar.gz libcore-df22ac586a1eab0cfaddd2c62f3b71ed74838b21.tar.bz2 |
Libcore: Remove getClassLoaderImpl
This is an unnecessary method.
Change-Id: I4457ff8491628208312d0ba8b2fa4230a597c5de
Diffstat (limited to 'libart')
-rw-r--r-- | libart/src/main/java/java/lang/Class.java | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/libart/src/main/java/java/lang/Class.java b/libart/src/main/java/java/lang/Class.java index c25e58c..573e753 100644 --- a/libart/src/main/java/java/lang/Class.java +++ b/libart/src/main/java/java/lang/Class.java @@ -418,24 +418,7 @@ public final class Class<T> implements Serializable, AnnotatedElement, GenericDe return null; } - ClassLoader loader = getClassLoaderImpl(); - if (loader == null) { - loader = BootClassLoader.getInstance(); - } - return loader; - } - - /** - * This must be provided by the VM vendor, as it is used by other provided - * class implementations in this package. Outside of this class, it is used - * by SecurityManager.classLoaderDepth(), - * currentClassLoader() and currentLoadedClass(). Return the ClassLoader for - * this Class without doing any security checks. The bootstrap ClassLoader - * is returned, unlike getClassLoader() which returns null in place of the - * bootstrap ClassLoader. - */ - ClassLoader getClassLoaderImpl() { - ClassLoader loader = classLoader; + final ClassLoader loader = classLoader; return loader == null ? BootClassLoader.getInstance() : loader; } |