From 8ec0fe03ec3c03ebbb4f5d3a7b3dc7d5955ac1d2 Mon Sep 17 00:00:00 2001 From: Fredrik Westermarck Date: Thu, 26 Feb 2004 21:10:01 +0000 Subject: [PATCH] Fixed some typos in javadoc. git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137818 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/commons/lang/CharUtils.java | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/java/org/apache/commons/lang/CharUtils.java b/src/java/org/apache/commons/lang/CharUtils.java index 0dc0481e9..c1edc038e 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.5 2004/02/24 22:22:51 fredrik Exp $ + * @version $Id: CharUtils.java,v 1.6 2004/02/26 21:10:01 fredrik Exp $ */ public class CharUtils { @@ -136,10 +136,10 @@ public static char toCharacter(Character ch, char defaultValue) { * an exception on empty Strings.

* *
-     *   CharUtils.toCharacter(null, 'X') = IllegalArgumentException
-     *   CharUtils.toCharacter("", 'X')   = IllegalArgumentException
-     *   CharUtils.toCharacter("A", 'X')  = 'A'
-     *   CharUtils.toCharacter("BA", 'X') = 'B'
+     *   CharUtils.toCharacter(null) = IllegalArgumentException
+     *   CharUtils.toCharacter("")   = IllegalArgumentException
+     *   CharUtils.toCharacter("A")  = 'A'
+     *   CharUtils.toCharacter("BA") = 'B'
      * 
* * @param str the character to convert @@ -321,8 +321,8 @@ public static String toString(Character ch) { *

This format is the Java source code format.

* *
-     *   CharUtils.toUnicode(' ') = "\u0020"
-     *   CharUtils.toUnicode('A') = "\u0041"
+     *   CharUtils.unicodeEscaped(' ') = "\u0020"
+     *   CharUtils.unicodeEscaped('A') = "\u0041"
      * 
* * @param ch the character to convert @@ -347,9 +347,9 @@ public static String unicodeEscaped(char ch) { *

If null is passed in, null will be returned.

* *
-     *   CharUtils.toUnicode(null) = null
-     *   CharUtils.toUnicode(' ')  = "\u0020"
-     *   CharUtils.toUnicode('A')  = "\u0041"
+     *   CharUtils.unicodeEscaped(null) = null
+     *   CharUtils.unicodeEscaped(' ')  = "\u0020"
+     *   CharUtils.unicodeEscaped('A')  = "\u0041"
      * 
* * @param ch the character to convert, may be null