From 45e13d88bf3110f2eeeb9babf1835a24269213e1 Mon Sep 17 00:00:00 2001 From: JaimeTruman <73758994+JaimeTruman@users.noreply.github.com> Date: Tue, 7 Jun 2022 17:15:27 +0200 Subject: [PATCH] added colllection in format value --- src/main/java/es/jaimetruman/Utils.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/es/jaimetruman/Utils.java b/src/main/java/es/jaimetruman/Utils.java index 4549246..f4c9e02 100644 --- a/src/main/java/es/jaimetruman/Utils.java +++ b/src/main/java/es/jaimetruman/Utils.java @@ -24,6 +24,8 @@ public static String formatValue (Object value) { formatted = (Boolean) value ? "1" : "0"; }else if(value instanceof Enum){ formatted = "'" + value.toString()+ "'"; + }else if(value instanceof Collection){ + formatted = "'" + value.toString() + "'"; }else{ formatted = value.toString(); }