diff --git a/src/java/org/apache/commons/lang/CharUtils.java b/src/java/org/apache/commons/lang/CharUtils.java index c1edc038e..55a50488d 100644 --- a/src/java/org/apache/commons/lang/CharUtils.java +++ b/src/java/org/apache/commons/lang/CharUtils.java @@ -24,7 +24,7 @@ * * @author Stephen Colebourne * @since 2.1 - * @version $Id: CharUtils.java,v 1.6 2004/02/26 21:10:01 fredrik Exp $ + * @version $Id: CharUtils.java,v 1.7 2004/03/10 22:59:45 scolebourne Exp $ */ public class CharUtils { @@ -94,13 +94,13 @@ public static Character toCharacterObject(char ch) { *

Converts the Character to a char throwing an exception for null.

* *
-     *   CharUtils.toCharacter(null, 'X') = IllegalArgumentException
-     *   CharUtils.toCharacter(' ', 'X')  = ' '
-     *   CharUtils.toCharacter('A', 'X')  = 'A'
+     *   CharUtils.toCharacter(null) = IllegalArgumentException
+     *   CharUtils.toCharacter(' ')  = ' '
+     *   CharUtils.toCharacter('A')  = 'A'
      * 
* * @param ch the character to convert - * @return the char value of the Character or the default if null + * @return the char value of the Character * @throws IllegalArgumentException if the Character is null */ public static char toCharacter(Character ch) { @@ -143,7 +143,7 @@ public static char toCharacter(Character ch, char defaultValue) { * * * @param str the character to convert - * @return the char value of the Character or the default if null + * @return the char value of the Character * @throws IllegalArgumentException if the String is empty */ public static char toCharacter(String str) {