From e3a2229f46f6b917d3b2249c4c9c3e04f0686584 Mon Sep 17 00:00:00 2001 From: Mahmoud Ben Hassine Date: Sun, 5 Apr 2020 11:20:33 +0200 Subject: [PATCH] Remove unnecessary call to String.valueOf --- easy-rules-core/src/main/java/org/jeasy/rules/api/Facts.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/easy-rules-core/src/main/java/org/jeasy/rules/api/Facts.java b/easy-rules-core/src/main/java/org/jeasy/rules/api/Facts.java index 3ebd48b..eb52221 100644 --- a/easy-rules-core/src/main/java/org/jeasy/rules/api/Facts.java +++ b/easy-rules-core/src/main/java/org/jeasy/rules/api/Facts.java @@ -99,7 +99,7 @@ public class Facts implements Iterable> { List> entries = new ArrayList<>(facts.entrySet()); for (int i = 0; i < entries.size(); i++) { Map.Entry entry = entries.get(i); - stringBuilder.append(format(" { %s : %s } ", entry.getKey(), String.valueOf(entry.getValue()))); + stringBuilder.append(format(" { %s : %s } ", entry.getKey(), entry.getValue())); if (i < entries.size() - 1) { stringBuilder.append(","); }