Ignore:
Timestamp:
2009-08-05T10:05:50+02:00 (17 years ago)
Author:
Gubaer
Message:

fixed #3193: No layer is left highlighted when the bottom most one is deleted
fixed some references to Way.nodes
clean up of warnings
added documentation in LayerListDialog

Location:
trunk/src/org/openstreetmap/josm/data
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/conflict/Conflict.java

    r1750 r1911  
    5151    }
    5252
     53    @SuppressWarnings("unchecked")
    5354    @Override
    5455    public boolean equals(Object obj) {
     
    5960        if (getClass() != obj.getClass())
    6061            return false;
    61         Conflict<T> other = (Conflict) obj;
     62        Conflict<T> other = (Conflict<T>) obj;
    6263        if (my != other.my)
    6364            return false;
  • trunk/src/org/openstreetmap/josm/data/gpx/GpxData.java

    r1724 r1911  
    4040    public Collection<WayPoint> waypoints = new LinkedList<WayPoint>();
    4141
     42    @SuppressWarnings("unchecked")
    4243    public void mergeFrom(GpxData other) {
    4344        if (storageFile == null && other.storageFile != null) {
     
    5152            if (k.equals(META_LINKS) && attr.containsKey(META_LINKS)) {
    5253                ((Collection<GpxLink>) attr.get(META_LINKS)).addAll(
    53                     (Collection<GpxLink>) ent.getValue());
     54                        (Collection<GpxLink>) ent.getValue());
    5455            } else {
    5556                attr.put(k, ent.getValue());
  • trunk/src/org/openstreetmap/josm/data/osm/Way.java

    r1910 r1911  
    7171    public Node getNode(int index) {
    7272        return nodes.get(index);
     73    }
     74
     75    /**
     76     * Replies true if this way contains the node <code>node</code>, false
     77     * otherwise. Replies false if  <code>node</code> is null.
     78     *
     79     * @param node the node. May be null.
     80     * @return true if this way contains the node <code>node</code>, false
     81     * otherwise
     82     * @since 1909
     83     */
     84    public boolean containsNode(Node node) {
     85        if (node == null) return false;
     86        return nodes.contains(node);
    7387    }
    7488
Note: See TracChangeset for help on using the changeset viewer.