Skip to content

Commit

Permalink
fixed exception with standard java types
Browse files Browse the repository at this point in the history
  • Loading branch information
Artem Fedorov committed Mar 20, 2017
1 parent c2de116 commit bfc47a2
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -102,7 +102,9 @@ static StringBuilder object2Groovy(StringBuilder b, Object o, boolean nestedExp)
return b;
}

if (clazz == Boolean.class || clazz == Integer.class || clazz == Long.class) {
if (clazz == Boolean.class || clazz == Integer.class || clazz == Long.class ||
clazz == Float.class || clazz == Double.class ||
clazz == Byte.class || clazz == Short.class) {
return b.append(o);
}

Expand Down

0 comments on commit bfc47a2

Please sign in to comment.