Ignore:
Timestamp:
2013-08-21T03:47:16+02:00 (12 years ago)
Author:
donvip
Message:

[josm_plugins] fix #8987 - bump min JOSM version of nearly all plugins to r6162 + code update/cleanup, fix warnings

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  
    1010 * @author zverik
    1111 */
    12 public class ChatMessage implements Comparable {
     12public class ChatMessage implements Comparable<ChatMessage> {
    1313    private LatLon pos;
    1414    private Date time;
     
    9696    }
    9797
    98     public int compareTo(Object o) {
    99         long otherId = ((ChatMessage)o).id;
     98    public int compareTo(ChatMessage o) {
     99        long otherId = o.id;
    100100        return otherId < id ? 1 : otherId == id ? 0 : 1;
    101101    }
  • applications/editors/josm/plugins/geochat/src/geochat/ChatServerConnection.java

    r29851 r29854  
    11// License: WTFPL
    22package geochat;
     3
     4import static org.openstreetmap.josm.tools.I18n.tr;
    35
    46import java.io.IOException;
    57import java.io.UnsupportedEncodingException;
    68import java.net.URLEncoder;
    7 import java.util.*;
    8 import java.util.logging.*;
     9import java.util.ArrayList;
     10import java.util.Date;
     11import java.util.HashMap;
     12import java.util.HashSet;
     13import java.util.List;
     14import java.util.Map;
     15import java.util.Set;
     16
    917import org.json.JSONArray;
    1018import org.json.JSONException;
     
    1523import org.openstreetmap.josm.data.projection.Projection;
    1624import org.openstreetmap.josm.gui.MapView;
    17 import static org.openstreetmap.josm.tools.I18n.tr;
    1825
    1926/**
Note: See TracChangeset for help on using the changeset viewer.