Skip to content

Commit

Permalink
added colllection in format value
Browse files Browse the repository at this point in the history
  • Loading branch information
JaimePolidura authored Jun 7, 2022
1 parent 12530ac commit 45e13d8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/es/jaimetruman/Utils.java
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit 45e13d8

Please sign in to comment.