From ddfc7c05ef915bb04e08e4205e2a452eb54e508d Mon Sep 17 00:00:00 2001
From: zzz <zzz@mail.i2p>
Date: Tue, 13 Nov 2018 17:53:33 +0000
Subject: [PATCH] Data: support non-string values in DataHelper.toString(Map)

---
 core/java/src/net/i2p/data/DataHelper.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/core/java/src/net/i2p/data/DataHelper.java b/core/java/src/net/i2p/data/DataHelper.java
index 8f9e4bc081..6e98805f59 100644
--- a/core/java/src/net/i2p/data/DataHelper.java
+++ b/core/java/src/net/i2p/data/DataHelper.java
@@ -400,14 +400,14 @@ public class DataHelper {
     /**
      * Pretty print the mapping, unsorted
      * (unless the options param is an OrderedProperties)
-     * @since 0.9.4
+     * @since 0.9.4, as of 0.9.38 supports non-String values
      */
     public static String toString(Map<?, ?> options) {
         StringBuilder buf = new StringBuilder();
         if (options != null) {
             for (Map.Entry<?, ?> entry : options.entrySet()) {
                 String key = (String) entry.getKey();
-                String val = (String) entry.getValue();
+                String val = entry.getValue().toString();
                 buf.append("[").append(key).append("] = [").append(val).append("]");
             }
         } else {
-- 
GitLab