ggregory 2003/06/03 13:49:59 Modified: lang/src/java/org/apache/commons/lang IllegalClassException.java Log: Minor Javadoc fix and improvements. Revision Changes Path 1.3 +8 -7 jakarta-commons/lang/src/java/org/apache/commons/lang/IllegalClassException.java Index: IllegalClassException.java =================================================================== RCS file: /home/cvs/jakarta-commons/lang/src/java/org/apache/commons/lang/IllegalClassException.java,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- IllegalClassException.java 16 May 2003 16:14:16 -0000 1.2 +++ IllegalClassException.java 3 Jun 2003 20:49:59 -0000 1.3 @@ -54,16 +54,17 @@ package org.apache.commons.lang; /** - * Thrown when an object is an instance of an unexpected class. + * Thrown when an object is an instance of an unexpected type (a class or interface). * * @author Matthew Hawthorne + * @author Gary Gregory * @since 2.0 * @version $Id$ */ public class IllegalClassException extends IllegalArgumentException { /** - * Instantiates with the specified classes. + * Instantiates with the specified types (classes or interfaces). * * @param expected the expected type * @param actual the actual type @@ -72,12 +73,12 @@ super( "Expected: " + safeGetClassName(expected) - + ", Actual: " + + ", actual: " + safeGetClassName(actual)); } /** - * Instantiates with the specified classes. + * Instantiates with the specified message. * * @param message the exception message */ @@ -86,10 +87,10 @@ } /** - * Gets a classname without throwing an Exception. + * Returns the class name or <code>null</code> if the class is <code>null</code>. * * @param cls a <code>Class</code> - * @return the name of <code>c</code>, or a <code>null</code> <code>String</code> + * @return the name of <code>cls</code>, or <code>null</code> if if <code>cls</code> is <code>null</code>. */ private static final String safeGetClassName(Class cls) { return cls == null ? null : cls.getName();
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]