Changeset 29854 in osm for applications/editors/josm/plugins/geochat/src
- Timestamp:
- 2013-08-21T03:47:16+02:00 (12 years ago)
- Location:
- applications/editors/josm/plugins/geochat/src/geochat
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/geochat/src/geochat/ChatMessage.java
r29584 r29854 10 10 * @author zverik 11 11 */ 12 public class ChatMessage implements Comparable { 12 public class ChatMessage implements Comparable<ChatMessage> { 13 13 private LatLon pos; 14 14 private Date time; … … 96 96 } 97 97 98 public int compareTo( Objecto) {99 long otherId = ((ChatMessage)o).id;98 public int compareTo(ChatMessage o) { 99 long otherId = o.id; 100 100 return otherId < id ? 1 : otherId == id ? 0 : 1; 101 101 } -
applications/editors/josm/plugins/geochat/src/geochat/ChatServerConnection.java
r29851 r29854 1 1 // License: WTFPL 2 2 package geochat; 3 4 import static org.openstreetmap.josm.tools.I18n.tr; 3 5 4 6 import java.io.IOException; 5 7 import java.io.UnsupportedEncodingException; 6 8 import java.net.URLEncoder; 7 import java.util.*; 8 import java.util.logging.*; 9 import java.util.ArrayList; 10 import java.util.Date; 11 import java.util.HashMap; 12 import java.util.HashSet; 13 import java.util.List; 14 import java.util.Map; 15 import java.util.Set; 16 9 17 import org.json.JSONArray; 10 18 import org.json.JSONException; … … 15 23 import org.openstreetmap.josm.data.projection.Projection; 16 24 import org.openstreetmap.josm.gui.MapView; 17 import static org.openstreetmap.josm.tools.I18n.tr;18 25 19 26 /**
Note:
See TracChangeset
for help on using the changeset viewer.