Changeset ddfc7c0


Ignore:
Timestamp:
Nov 13, 2018 5:53:33 PM (2 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
b695242d
Parents:
9377b57
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • core/java/src/net/i2p/data/DataHelper.java

    r9377b57 rddfc7c0  
    401401     * Pretty print the mapping, unsorted
    402402     * (unless the options param is an OrderedProperties)
    403      * @since 0.9.4
     403     * @since 0.9.4, as of 0.9.38 supports non-String values
    404404     */
    405405    public static String toString(Map<?, ?> options) {
     
    408408            for (Map.Entry<?, ?> entry : options.entrySet()) {
    409409                String key = (String) entry.getKey();
    410                 String val = (String) entry.getValue();
     410                String val = entry.getValue().toString();
    411411                buf.append("[").append(key).append("] = [").append(val).append("]");
    412412            }
Note: See TracChangeset for help on using the changeset viewer.