Skip to content

Commit 4e67c99

Browse files
committed
added handler for java.util.* elements
1 parent 67a1f90 commit 4e67c99

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

flow-kit/src/main/java/com/zeoflow/utils/string/StringCreator.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -414,6 +414,10 @@ private void addArgument(String format, char c, Object arg, boolean camelCase, b
414414
private String argToName(Object o)
415415
{
416416
if (o instanceof CharSequence) return o.toString();
417+
else if (o instanceof Integer) return o.toString();
418+
else if (o instanceof Long) return o.toString();
419+
else if (o instanceof Boolean) return o.toString();
420+
else if (o instanceof Float) return o.toString();
417421
throw new IllegalArgumentException("expected name but was " + o);
418422
}
419423

0 commit comments

Comments
 (0)