@ -57,11 +57,10 @@ public class CharacterEditor extends PropertyEditorSupport {
@@ -57,11 +57,10 @@ public class CharacterEditor extends PropertyEditorSupport {
@ -81,12 +80,12 @@ public class CharacterEditor extends PropertyEditorSupport {
@@ -81,12 +80,12 @@ public class CharacterEditor extends PropertyEditorSupport {
elseif(isUnicodeCharacterSequence(text)){
setAsUnicode(text);
}
elseif(text.length()!=1){
thrownewIllegalArgumentException("String ["+text+"] with length "+
text.length()+" cannot be converted to char type");
elseif(text.length()==1){
setValue(Character.valueOf(text.charAt(0)));
}
else{
setValue(newCharacter(text.charAt(0)));
thrownewIllegalArgumentException("String ["+text+"] with length "+
text.length()+" cannot be converted to char type: neither Unicode nor single character");
}
}
@ -103,7 +102,7 @@ public class CharacterEditor extends PropertyEditorSupport {
@@ -103,7 +102,7 @@ public class CharacterEditor extends PropertyEditorSupport {