Statement unnecessarily nested within else clause.

git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@230836 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Gary D. Gregory 2005-08-08 18:20:13 +00:00
parent ea5f046469
commit 1a824f69ad
1 changed files with 3 additions and 6 deletions

View File

@ -85,9 +85,8 @@ public class CharUtils {
public static Character toCharacterObject(char ch) {
if (ch < CHAR_ARRAY.length) {
return CHAR_ARRAY[ch];
} else {
return new Character(ch);
}
return new Character(ch);
}
/**
@ -309,9 +308,8 @@ public class CharUtils {
public static String toString(char ch) {
if (ch < 128) {
return CHAR_STRING_ARRAY[ch];
} else {
return new String(new char[] {ch});
}
return new String(new char[] {ch});
}
/**
@ -334,9 +332,8 @@ public class CharUtils {
public static String toString(Character ch) {
if (ch == null) {
return null;
} else {
return toString(ch.charValue());
}
return toString(ch.charValue());
}
//--------------------------------------------------------------------------