Changeset 6552 in josm for trunk/src/org/openstreetmap/josm/io/CacheCustomContent.java
- Timestamp:
- 2013-12-28T00:30:15+01:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/io/CacheCustomContent.java
r6102 r6552 8 8 import java.io.FileOutputStream; 9 9 import java.io.IOException; 10 import java.io.UnsupportedEncodingException;11 10 12 11 import org.openstreetmap.josm.Main; … … 120 119 public String updateForceString() throws T { 121 120 updateForce(); 122 try { 123 return new String(data, "utf-8"); 124 } catch (UnsupportedEncodingException e){ 125 e.printStackTrace(); 126 return ""; 127 } 121 return new String(data, Utils.UTF_8); 128 122 } 129 123 … … 144 138 */ 145 139 public String getDataString() throws T { 146 try { 147 return new String(getData(), "utf-8"); 148 } catch(UnsupportedEncodingException e){ 149 e.printStackTrace(); 150 return ""; 151 } 140 return new String(getData(), Utils.UTF_8); 152 141 } 153 142
Note:
See TracChangeset
for help on using the changeset viewer.
