Skip to content
Permalink
Browse files

fixed exception with standard java types

  • Loading branch information...
artem-fedorov committed Mar 20, 2017
1 parent c2de116 commit bfc47a2598ae79110d41d036fcbbe7920305cbab
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/main/java/org/jenkinsci/plugins/workflow/cps/Snippetizer.java
@@ -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);
}

0 comments on commit bfc47a2

Please sign in to comment.
You can’t perform that action at this time.