Java 5: Unnecessary boxing

This commit is contained in:
Lars Grefer
2019-08-27 02:07:44 +02:00
committed by Rossen Stoyanchev
parent 7caa67f302
commit ab69df656d
5 changed files with 6 additions and 6 deletions

View File

@@ -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) {