diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2012-03-23 16:19:34 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2012-03-23 16:20:17 +0100 |
commit | 8087d5389f8d1133f119a9e6db88f91229831b61 (patch) | |
tree | 486f9f89b3897fd397ba181418b0eb131a20a04e | |
parent | 4b6988b43231ced65765051d10c021a9e07d23f6 (diff) |
Java new cannot return null
-rw-r--r-- | scripting/java/com/sun/star/script/framework/provider/ClassLoaderFactory.java | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/scripting/java/com/sun/star/script/framework/provider/ClassLoaderFactory.java b/scripting/java/com/sun/star/script/framework/provider/ClassLoaderFactory.java index 081204f3c7b0..d2c660efa864 100644 --- a/scripting/java/com/sun/star/script/framework/provider/ClassLoaderFactory.java +++ b/scripting/java/com/sun/star/script/framework/provider/ClassLoaderFactory.java @@ -57,20 +57,8 @@ public class ClassLoaderFactory return getURLClassLoader( parent, classPath ); } public static ClassLoader getURLClassLoader( ClassLoader parent, URL[] classpath) - throws NoSuitableClassLoaderException { - ClassLoader loader = - new URLClassLoader( classpath, parent); - - if (loader != null) - { - return loader; - } - else - { - throw new NoSuitableClassLoaderException( - "Unable to create URLClassLoader"); - } + return new URLClassLoader( classpath, parent); } } |