From ec55bd233aae78967918d8ee84be2ba8ca468c78 Mon Sep 17 00:00:00 2001 From: mkoch Date: Tue, 20 Apr 2004 12:30:19 +0000 Subject: 2004-04-20 Michael Koch * java/lang/Byte.java, java/lang/CharSequence.java, java/lang/ClassLoader.java, java/lang/Compiler.java, java/lang/Double.java, java/lang/Float.java, java/lang/Integer.java, java/lang/Long.java, java/lang/Math.java, java/lang/Number.java, java/lang/Package.java, java/lang/Runtime.java, java/lang/RuntimePermission.java, java/lang/SecurityManager.java, java/lang/Short.java, java/lang/StringBuffer.java, java/lang/System.java, java/lang/ThreadGroup.java, java/lang/Throwable.java, java/lang/reflect/InvocationHandler.java, java/lang/reflect/Proxy.java: Fixed javadocs, coding style and argument names all over. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@80899 138bc75d-0d04-0410-961f-82ee72b054a4 --- libjava/java/lang/ClassLoader.java | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'libjava/java/lang/ClassLoader.java') diff --git a/libjava/java/lang/ClassLoader.java b/libjava/java/lang/ClassLoader.java index 7bbd6412554..2b30b1b8a8b 100644 --- a/libjava/java/lang/ClassLoader.java +++ b/libjava/java/lang/ClassLoader.java @@ -249,7 +249,7 @@ public abstract class ClassLoader * it. Calls loadClass(name, false). * *

Subclasses should not override this method but should override - * findClass() which is called by this method. + * findClass() which is called by this method.

* * @param name the name of the class relative to this ClassLoader * @return the loaded class @@ -266,14 +266,14 @@ public abstract class ClassLoader * out if the class has already been loaded through this classloader by * calling findLoadedClass(). Then it calls * loadClass() on the parent classloader (or when there is - * no parent it uses the VM bootclassloader)). If the class is still + * no parent it uses the VM bootclassloader). If the class is still * not loaded it tries to create a new class by calling * findClass(). Finally when resolve is * true it also calls resolveClass() on the * newly loaded class. * *

Subclasses should not override this method but should override - * findClass() which is called by this method. + * findClass() which is called by this method.

* * @param name the fully qualified name of the class to load * @param resolve whether or not to resolve the class @@ -384,7 +384,7 @@ public abstract class ClassLoader * findClass() implementation. The name should use '.' * separators, and discard the trailing ".class". The default protection * domain has the permissions of - * Policy.getPolicy().getPermissions(new CodeSource(null, null)). + * Policy.getPolicy().getPermissions(new CodeSource(null, null)). * * @param name the name to give the class, or null if unknown * @param data the data representing the classfile, in classfile format @@ -407,7 +407,7 @@ public abstract class ClassLoader * Helper to define a class using a string of bytes. Subclasses should call * this method from their findClass() implementation. If the * domain is null, the default of - * Policy.getPolicy().getPermissions(new CodeSource(null, null)) + * Policy.getPolicy().getPermissions(new CodeSource(null, null)) * is used. Once a class has been defined in a package, all further classes * in that package must have the same set of certificates or a * SecurityException is thrown. @@ -475,6 +475,7 @@ public abstract class ClassLoader * null. A security check may be performed on * RuntimePermission("getClassLoader"). * + * @return the parent ClassLoader * @throws SecurityException if the security check fails * @since 1.2 */ @@ -554,13 +555,13 @@ public abstract class ClassLoader * multiple resources with the same name that come from multiple locations. * It can also occur that a parent classloader offers a resource with a * certain name and the child classloader also offers a resource with that - * same name. getResource() only offers the first resource (of the + * same name. getResource() only offers the first resource (of the * parent) with a given name. This method lists all resources with the * same name. The name should use '/' as path separators. * *

The Enumeration is created by first calling getResources() * on the parent classloader and then calling findResources() - * on this classloader. + * on this classloader.

* * @param name the resource name * @return an enumaration of all resources found -- cgit v1.2.3