Skip to content

Commit 56bb5b2

Browse files
Correct a wrong type casting
1 parent 3ddcb1e commit 56bb5b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/javawebstack/orm/mapper/DefaultMapper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public Object mapToJava(Object source, Class<?> type) {
6767
if (type.equals(char[].class))
6868
return ((String) source).toCharArray();
6969
if (type.equals(char.class)) {
70-
String stringSource = String.valueOf((char) source);
70+
String stringSource = (String) source;
7171
if (stringSource.length() != 1)
7272
return ' ';
7373
else

0 commit comments

Comments
 (0)