Java 5: Unnecessary boxing
This commit is contained in:
committed by
Rossen Stoyanchev
parent
7caa67f302
commit
ab69df656d
@@ -22,7 +22,7 @@ public class StringToCharacter extends StringToObject {
|
||||
}
|
||||
|
||||
protected Object toObject(String string, Class<?> targetClass) {
|
||||
return new Character(string.charAt(0));
|
||||
return string.charAt(0);
|
||||
}
|
||||
|
||||
protected String toString(Object object) {
|
||||
|
||||
Reference in New Issue
Block a user