Remove unnecessary call to String.valueOf

pull/271/head
Mahmoud Ben Hassine 5 years ago
parent 93a5f13ef8
commit e3a2229f46
No known key found for this signature in database
GPG Key ID: 79FCFB0A184E0036

@ -99,7 +99,7 @@ public class Facts implements Iterable<Map.Entry<String, Object>> {
List<Map.Entry<String, Object>> entries = new ArrayList<>(facts.entrySet()); List<Map.Entry<String, Object>> entries = new ArrayList<>(facts.entrySet());
for (int i = 0; i < entries.size(); i++) { for (int i = 0; i < entries.size(); i++) {
Map.Entry<String, Object> entry = entries.get(i); Map.Entry<String, Object> 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) { if (i < entries.size() - 1) {
stringBuilder.append(","); stringBuilder.append(",");
} }

Loading…
Cancel
Save