I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit ddfc7c05 authored by zzz's avatar zzz
Browse files

Data: support non-string values in DataHelper.toString(Map)

parent 9377b57c
No related branches found
No related tags found
No related merge requests found
......@@ -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 {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment