Ignore:
Timestamp:
2013-08-21T03:47:16+02:00 (11 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
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/geochat/build.xml

    r29588 r29854  
    11<?xml version="1.0" encoding="utf-8"?>
    2 <!--
    3 ** This is a template build file for a JOSM  plugin.
    4 **
    5 ** Maintaining versions
    6 ** ====================
    7 ** See README.template
    8 **
    9 ** Usage
    10 ** =====
    11 ** Call "ant help" to get possible build targets.
    12 **
    13 -->
    142<project name="geochat" default="dist" basedir=".">
    153
     
    175    <property name="commit.message" value="[josm_geochat] copypaste from keyboard, font size advanced parameters"/>
    186    <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
    19     <property name="plugin.main.version" value="4666"/>
     7    <property name="plugin.main.version" value="6162"/>
    208
    219    <property name="plugin.author" value="Ilya Zverev"/>
  • 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.