Changeset 12537 in josm for trunk/src/org/openstreetmap/josm/io/XmlWriter.java
- Timestamp:
- 2017-07-30T00:22:46+02:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/io/XmlWriter.java
r9828 r12537 62 62 String encS = null; 63 63 if (!keepApos || unencoded.charAt(i) != '\'') { 64 encS = XmlWriter.encoding.get(unencoded.charAt(i));64 encS = ENCODING.get(unencoded.charAt(i)); 65 65 } 66 66 if (encS != null) { … … 80 80 * The output writer to save the values to. 81 81 */ 82 private static final Map<Character, String> encoding= new HashMap<>();82 private static final Map<Character, String> ENCODING = new HashMap<>(); 83 83 static { 84 encoding.put('<', "<");85 encoding.put('>', ">");86 encoding.put('"', """);87 encoding.put('\'', "'");88 encoding.put('&', "&");89 encoding.put('\n', "
");90 encoding.put('\r', "
");91 encoding.put('\t', "	");84 ENCODING.put('<', "<"); 85 ENCODING.put('>', ">"); 86 ENCODING.put('"', """); 87 ENCODING.put('\'', "'"); 88 ENCODING.put('&', "&"); 89 ENCODING.put('\n', "
"); 90 ENCODING.put('\r', "
"); 91 ENCODING.put('\t', "	"); 92 92 } 93 93
Note:
See TracChangeset
for help on using the changeset viewer.