Changeset 14598 in josm for trunk


Ignore:
Timestamp:
2018-12-23T17:49:06+01:00 (4 months ago)
Author:
GerdP
Message:

see #17040 kitofx.patch: use String.intern() for deduplication of Strings that appear in svg graphics

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/com/kitfox/svg/xml/XMLParseUtil.java

    r14331 r14598  
    320320            }
    321321
    322             String key = styles[i].substring(0, colon).trim();
    323             String value = quoteMatch.reset(styles[i].substring(colon + 1).trim()).replaceAll("");
     322            String key = styles[i].substring(0, colon).trim().intern();
     323            String value = quoteMatch.reset(styles[i].substring(colon + 1).trim()).replaceAll("").intern();
    324324
    325325            map.put(key, new StyleAttribute(key, value));
Note: See TracChangeset for help on using the changeset viewer.