- Timestamp:
- 2014-02-07T01:03:57+01:00 (11 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 29 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/OpenFileAction.java
r6380 r6822 133 133 134 134 protected void alertFilesNotMatchingWithImporter(Collection<File> files, FileImporter importer) { 135 final StringBu ffer msg = new StringBuffer();135 final StringBuilder msg = new StringBuilder(); 136 136 msg.append("<html>"); 137 137 msg.append( … … 160 160 161 161 protected void alertFilesWithUnknownImporter(Collection<File> files) { 162 final StringBu ffer msg = new StringBuffer();162 final StringBuilder msg = new StringBuilder(); 163 163 msg.append("<html>"); 164 164 msg.append( -
trunk/src/org/openstreetmap/josm/actions/upload/CyclicUploadDependencyException.java
r3083 r6822 19 19 20 20 protected String formatRelation(Relation r) { 21 StringBu ffer sb = new StringBuffer();21 StringBuilder sb = new StringBuilder(); 22 22 if (r.getName() != null) { 23 23 sb.append("'").append(r.getName()).append("'"); … … 32 32 @Override 33 33 public String getMessage() { 34 StringBu ffer sb = new StringBuffer();34 StringBuilder sb = new StringBuilder(); 35 35 sb.append(tr("Cyclic dependency between relations:")); 36 36 sb.append("["); -
trunk/src/org/openstreetmap/josm/data/Bounds.java
r6798 r6822 399 399 400 400 public String encodeAsString(String separator) { 401 StringBu ffer sb = new StringBuffer();401 StringBuilder sb = new StringBuilder(); 402 402 sb.append(minLat).append(separator).append(minLon) 403 403 .append(separator).append(maxLat).append(separator) -
trunk/src/org/openstreetmap/josm/data/Version.java
r6643 r6822 39 39 try { 40 40 BufferedReader in = Utils.openURLReader(resource); 41 StringBu ffer sb = new StringBuffer();41 StringBuilder sb = new StringBuilder(); 42 42 try { 43 43 for (String line = in.readLine(); line != null; line = in.readLine()) { … … 146 146 // the revision info 147 147 // 148 StringBu ffer sb = new StringBuffer();148 StringBuilder sb = new StringBuilder(); 149 149 for(Entry<String,String> property: properties.entrySet()) { 150 150 sb.append(property.getKey()).append(":").append(property.getValue()).append("\n"); -
trunk/src/org/openstreetmap/josm/data/imagery/Shape.java
r6069 r6822 36 36 37 37 public String encodeAsString(String separator) { 38 StringBu ffer sb = new StringBuffer();38 StringBuilder sb = new StringBuilder(); 39 39 for (Coordinate c : coords) { 40 40 if (sb.length() != 0) { -
trunk/src/org/openstreetmap/josm/data/osm/User.java
r6380 r6822 220 220 @Override 221 221 public String toString() { 222 StringBu ffer s = new StringBuffer();222 StringBuilder s = new StringBuilder(); 223 223 s.append("id:").append(uid); 224 224 if (names.size() == 1) { -
trunk/src/org/openstreetmap/josm/data/projection/datum/NTV2GridShiftFile.java
r6316 r6822 279 279 @Override 280 280 public String toString() { 281 StringBu ffer buf = new StringBuffer("Headers : ");281 StringBuilder buf = new StringBuilder("Headers : "); 282 282 buf.append(overviewHeaderCount); 283 283 buf.append("\nSub Hdrs : "); -
trunk/src/org/openstreetmap/josm/data/projection/datum/NTV2SubGrid.java
r6310 r6822 296 296 */ 297 297 public String getDetails() { 298 StringBu ffer buf = new StringBuffer("Sub Grid : ");298 StringBuilder buf = new StringBuilder("Sub Grid : "); 299 299 buf.append(subGridName); 300 300 buf.append("\nParent : "); -
trunk/src/org/openstreetmap/josm/gui/bbox/TileSelectionBBoxChooser.java
r6793 r6822 652 652 @Override 653 653 public String toString() { 654 StringBu ffer sb = new StringBuffer();654 StringBuilder sb = new StringBuilder(); 655 655 sb.append("min=").append(min.x).append(",").append(min.y).append(","); 656 656 sb.append("max=").append(max.x).append(",").append(max.y).append(","); -
trunk/src/org/openstreetmap/josm/gui/conflict/pair/ListMergeModel.java
r6524 r6822 356 356 items.add(tr("{0} more...", deletedIds.size() - MAX_DELETED_PRIMITIVE_IN_DIALOG)); 357 357 } 358 StringBu ffer sb = new StringBuffer();358 StringBuilder sb = new StringBuilder(); 359 359 sb.append("<html>"); 360 360 sb.append(tr("The following objects could not be copied to the target object<br>because they are deleted in the target dataset:")); -
trunk/src/org/openstreetmap/josm/gui/dialogs/ConflictDialog.java
r6555 r6822 486 486 ); 487 487 488 final StringBu ffer sb = new StringBuffer();488 final StringBuilder sb = new StringBuilder(); 489 489 sb.append("<html>").append(msg1).append("</html>"); 490 490 if (numNewConflicts > 0) { -
trunk/src/org/openstreetmap/josm/gui/dialogs/SelectionListDialog.java
r6742 r6822 715 715 } 716 716 } 717 StringBu ffer text = new StringBuffer();717 StringBuilder text = new StringBuilder(); 718 718 if(ways != 0) { 719 719 text.append(text.length() > 0 ? ", " : "") -
trunk/src/org/openstreetmap/josm/gui/dialogs/changeset/ChangesetListCellRenderer.java
r6084 r6822 32 32 33 33 protected void renderLabel(Changeset cs) { 34 StringBu ffer sb = new StringBuffer();34 StringBuilder sb = new StringBuilder(); 35 35 if (cs.isIncomplete()) { 36 36 sb.append(tr("{0} [incomplete]", cs.getId())); -
trunk/src/org/openstreetmap/josm/gui/download/BookmarkList.java
r6552 r6822 277 277 protected String buildToolTipText(Bookmark b) { 278 278 Bounds area = b.getArea(); 279 StringBu ffer sb = new StringBuffer();279 StringBuilder sb = new StringBuilder(); 280 280 sb.append("<html>min[latitude,longitude]=<strong>[") 281 281 .append(area.getMinLat()).append(",").append(area.getMinLon()).append("]</strong>") -
trunk/src/org/openstreetmap/josm/gui/download/PlaceSelection.java
r6643 r6822 508 508 509 509 protected String lineWrapDescription(String description) { 510 StringBu ffer ret = new StringBuffer();511 StringBu ffer line = new StringBuffer();510 StringBuilder ret = new StringBuilder(); 511 StringBuilder line = new StringBuilder(); 512 512 StringTokenizer tok = new StringTokenizer(description, " "); 513 513 while(tok.hasMoreElements()) { … … 520 520 line.append(" ").append(t).append("<br>"); 521 521 ret.append(line); 522 line = new StringBu ffer();522 line = new StringBuilder(); 523 523 } 524 524 } -
trunk/src/org/openstreetmap/josm/gui/help/HelpBrowser.java
r6800 r6822 140 140 ) 141 141 ); 142 StringBu ffer css = new StringBuffer();142 StringBuilder css = new StringBuilder(); 143 143 try { 144 144 String line = null; -
trunk/src/org/openstreetmap/josm/gui/io/ChangesetCellRenderer.java
r6084 r6822 54 54 if (cs != null) { 55 55 setIcon(icon); 56 StringBu ffer sb = new StringBuffer();56 StringBuilder sb = new StringBuilder(); 57 57 if (cs.get("comment") != null) { 58 58 sb.append(cs.getId()).append(" - ").append(cs.get("comment")); -
trunk/src/org/openstreetmap/josm/gui/io/UploadParameterSummaryPanel.java
r6654 r6822 32 32 33 33 protected String buildChangesetSummary() { 34 StringBu ffer msg = new StringBuffer();34 StringBuilder msg = new StringBuilder(); 35 35 if (selectedChangeset == null || selectedChangeset.isNew()) { 36 36 msg.append(tr("Objects are uploaded to a <strong>new changeset</strong>.")); … … 141 141 142 142 protected void updateSummary() { 143 StringBu ffer sb = new StringBuffer();143 StringBuilder sb = new StringBuilder(); 144 144 sb.append("<html>"); 145 145 sb.append(buildStrategySummary()); -
trunk/src/org/openstreetmap/josm/gui/layer/geoimage/CorrelateGpxWithImages.java
r6798 r6822 298 298 TimeZone tz = TimeZone.getTimeZone(tzStr); 299 299 300 String tzDesc = new StringBu ffer(tzStr).append(" (")300 String tzDesc = new StringBuilder(tzStr).append(" (") 301 301 .append(formatTimezone(tz.getRawOffset() / 3600000.0)) 302 302 .append(')').toString(); … … 316 316 } 317 317 318 cbTimezones.setSelectedItem(new StringBu ffer(defaultTz.getID()).append(" (")318 cbTimezones.setSelectedItem(new StringBuilder(defaultTz.getID()).append(" (") 319 319 .append(formatTimezone(defaultTz.getRawOffset() / 3600000.0)) 320 320 .append(')').toString()); … … 1295 1295 1296 1296 private String formatTimezone(double timezone) { 1297 StringBu ffer ret = new StringBuffer();1297 StringBuilder ret = new StringBuilder(); 1298 1298 1299 1299 if (timezone < 0) { … … 1321 1321 1322 1322 char sgnTimezone = '+'; 1323 StringBu ffer hTimezone = new StringBuffer();1324 StringBu ffer mTimezone = new StringBuffer();1323 StringBuilder hTimezone = new StringBuilder(); 1324 StringBuilder mTimezone = new StringBuilder(); 1325 1325 int state = 1; // 1=start/sign, 2=hours, 3=minutes. 1326 1326 for (int i = 0; i < timezone.length(); i++) { -
trunk/src/org/openstreetmap/josm/gui/layer/geoimage/ImageViewerDialog.java
r6456 r6822 253 253 } 254 254 setTitle("Geotagged Images" + (entry.getFile() != null ? " - " + entry.getFile().getName() : "")); 255 StringBu ffer osd = new StringBuffer(entry.getFile() != null ? entry.getFile().getName() : "");255 StringBuilder osd = new StringBuilder(entry.getFile() != null ? entry.getFile().getName() : ""); 256 256 if (entry.getElevation() != null) { 257 257 osd.append(tr("\nAltitude: {0} m", entry.getElevation().longValue())); -
trunk/src/org/openstreetmap/josm/io/ChangesetQuery.java
r6643 r6822 253 253 */ 254 254 public String getQueryString() { 255 StringBu ffer sb = new StringBuffer();255 StringBuilder sb = new StringBuilder(); 256 256 if (uid != null) { 257 257 sb.append("user").append("=").append(uid); -
trunk/src/org/openstreetmap/josm/io/NmeaReader.java
r6798 r6822 179 179 rd = new BufferedReader(new InputStreamReader(source)); 180 180 181 StringBu ffer sb = new StringBuffer(1024);181 StringBuilder sb = new StringBuilder(1024); 182 182 int loopstart_char = rd.read(); 183 183 ps = new NMEAParserState(); -
trunk/src/org/openstreetmap/josm/io/OsmApi.java
r6792 r6822 322 322 */ 323 323 public String getBaseUrl() { 324 StringBu ffer rv = new StringBuffer(serverUrl);324 StringBuilder rv = new StringBuilder(serverUrl); 325 325 if (version != null) { 326 326 rv.append("/"); … … 603 603 */ 604 604 private String sendRequest(String requestMethod, String urlSuffix,String requestBody, ProgressMonitor monitor, boolean doAuthenticate, boolean fastFail) throws OsmTransferException { 605 StringBu ffer responseBody = new StringBuffer();605 StringBuilder responseBody = new StringBuilder(); 606 606 int retries = fastFail ? 0 : getMaxRetries(); 607 607 -
trunk/src/org/openstreetmap/josm/io/OsmServerBackreferenceReader.java
r6361 r6822 135 135 try { 136 136 progressMonitor.indeterminateSubTask(tr("Downloading from OSM Server...")); 137 StringBu ffer sb = new StringBuffer();137 StringBuilder sb = new StringBuilder(); 138 138 sb.append(primitiveType.getAPIName()) 139 139 .append("/").append(id).append("/ways"); … … 169 169 try { 170 170 progressMonitor.subTask(tr("Contacting OSM Server...")); 171 StringBu ffer sb = new StringBuffer();171 StringBuilder sb = new StringBuilder(); 172 172 sb.append(primitiveType.getAPIName()) 173 173 .append("/").append(id).append("/relations"); -
trunk/src/org/openstreetmap/josm/io/OsmServerChangesetReader.java
r6792 r6822 57 57 try { 58 58 monitor.beginTask(tr("Reading changesets...")); 59 StringBu ffer sb = new StringBuffer();59 StringBuilder sb = new StringBuilder(); 60 60 sb.append("changesets?").append(query.getQueryString()); 61 61 InputStream in = getInputStream(sb.toString(), monitor.createSubTaskMonitor(1, true)); … … 90 90 try { 91 91 monitor.beginTask(tr("Reading changeset {0} ...",id)); 92 StringBu ffer sb = new StringBuffer();92 StringBuilder sb = new StringBuilder(); 93 93 sb.append("changeset/").append(id); 94 94 InputStream in = getInputStream(sb.toString(), monitor.createSubTaskMonitor(1, true)); … … 134 134 } 135 135 i++; 136 StringBu ffer sb = new StringBuffer();136 StringBuilder sb = new StringBuilder(); 137 137 sb.append("changeset/").append(id); 138 138 InputStream in = getInputStream(sb.toString(), monitor.createSubTaskMonitor(1, true)); … … 174 174 try { 175 175 monitor.beginTask(tr("Downloading changeset content")); 176 StringBu ffer sb = new StringBuffer();176 StringBuilder sb = new StringBuilder(); 177 177 sb.append("changeset/").append(id).append("/download"); 178 178 InputStream in = getInputStream(sb.toString(), monitor.createSubTaskMonitor(1, true)); -
trunk/src/org/openstreetmap/josm/io/OsmServerHistoryReader.java
r6792 r6822 60 60 try { 61 61 progressMonitor.indeterminateSubTask(tr("Contacting OSM Server...")); 62 StringBu ffer sb = new StringBuffer();62 StringBuilder sb = new StringBuilder(); 63 63 sb.append(primitiveType.getAPIName()) 64 64 .append("/").append(id).append("/history"); -
trunk/src/org/openstreetmap/josm/io/OsmServerObjectReader.java
r6792 r6822 119 119 try { 120 120 progressMonitor.indeterminateSubTask(tr("Downloading OSM data...")); 121 StringBu ffer sb = new StringBuffer();121 StringBuilder sb = new StringBuilder(); 122 122 sb.append(id.getType().getAPIName()); 123 123 sb.append("/"); -
trunk/src/org/openstreetmap/josm/plugins/PluginHandler.java
r6797 r6822 761 761 762 762 private static void alertFailedPluginUpdate(Component parent, Collection<PluginInformation> plugins) { 763 StringBu ffer sb = new StringBuffer();763 StringBuilder sb = new StringBuilder(); 764 764 sb.append("<html>"); 765 765 sb.append(trn( … … 1139 1139 }; 1140 1140 1141 final StringBu ffer msg = new StringBuffer();1141 final StringBuilder msg = new StringBuilder(); 1142 1142 msg.append("<html>"); 1143 1143 msg.append(tr("An unexpected exception occurred that may have come from the ''{0}'' plugin.", plugin.getPluginInformation().name)); -
trunk/src/org/openstreetmap/josm/tools/WindowGeometry.java
r6541 r6822 248 248 */ 249 249 public void remember(String preferenceKey) { 250 StringBu ffer value = new StringBuffer();250 StringBuilder value = new StringBuilder(); 251 251 value.append("x=").append(topLeft.x).append(",") 252 252 .append("y=").append(topLeft.y).append(",")
Note:
See TracChangeset
for help on using the changeset viewer.