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/graphview/src/org/openstreetmap/josm/plugins/graphview
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/graphview/src/org/openstreetmap/josm/plugins/graphview/core/graph/GraphEdge.java

    r23189 r29854  
    22
    33import java.util.Collection;
    4 import java.util.List;
    54
    65import org.openstreetmap.josm.plugins.graphview.core.property.GraphEdgePropertyType;
    7 import org.openstreetmap.josm.plugins.graphview.core.transition.Segment;
    86
    97/**
  • applications/editors/josm/plugins/graphview/src/org/openstreetmap/josm/plugins/graphview/core/graph/TSBasedWayGraph.java

    r23189 r29854  
    8989        }
    9090        public <V> V getPropertyValue(GraphEdgePropertyType<V> property) {
     91            @SuppressWarnings("unchecked")
    9192            V result = (V) properties.get(property);
    9293            return result;
     
    429430
    430431        if (!objectSetMap.containsKey(object)) {
    431             @SuppressWarnings("unchecked") //no set with generic parameter can be created directly
    432             Set<T> set = new HashSet();
     432            Set<T> set = new HashSet<T>();
    433433            set.add(object);
    434434            objectSetMap.put(object, set);
    435435        }
    436 
    437436    }
    438437
  • applications/editors/josm/plugins/graphview/src/org/openstreetmap/josm/plugins/graphview/core/transition/GenericTransitionStructure.java

    r23189 r29854  
    6666        }
    6767
    68         public <P> void setProperty(RoadPropertyType<P> property, P value) {
     68        /*public <P> void setProperty(RoadPropertyType<P> property, P value) {
    6969            properties.put(property, value);
    70         }
     70        }*/
    7171        public Collection<RoadPropertyType<?>> getAvailableProperties() {
    7272            return properties.keySet();
     
    102102            return node2;
    103103        }
    104         public <P> void setProperty(RoadPropertyType<P> property, P value) {
     104        /*public <P> void setProperty(RoadPropertyType<P> property, P value) {
    105105            properties.put(property, value);
    106         }
     106        }*/
    107107        public Collection<RoadPropertyType<?>> getAvailableProperties() {
    108108            return properties.keySet();
  • applications/editors/josm/plugins/graphview/src/org/openstreetmap/josm/plugins/graphview/plugin/dialogs/AccessParameterDialog.java

    r26174 r29854  
    11package org.openstreetmap.josm.plugins.graphview.plugin.dialogs;
    2 
    3 import static org.openstreetmap.josm.tools.I18n.tr;
    42
    53import static org.openstreetmap.josm.plugins.graphview.core.property.VehiclePropertyTypes.MAX_INCLINE_DOWN;
     
    75import static org.openstreetmap.josm.plugins.graphview.core.property.VehiclePropertyTypes.MAX_TRACKTYPE;
    86import static org.openstreetmap.josm.plugins.graphview.core.property.VehiclePropertyTypes.SURFACE_BLACKLIST;
     7import static org.openstreetmap.josm.tools.I18n.tr;
    98
    109import java.awt.Frame;
  • applications/editors/josm/plugins/graphview/src/org/openstreetmap/josm/plugins/graphview/plugin/dialogs/GraphViewDialog.java

    r27359 r29854  
    33import static org.openstreetmap.josm.tools.I18n.tr;
    44
    5 import java.awt.BorderLayout;
    65import java.awt.Color;
    76import java.awt.GridBagConstraints;
     
    2827import javax.swing.JPanel;
    2928
     29import org.openstreetmap.josm.gui.SideButton;
    3030import org.openstreetmap.josm.gui.dialogs.ToggleDialog;
    31 import org.openstreetmap.josm.gui.SideButton;
    3231import org.openstreetmap.josm.plugins.graphview.core.access.AccessRulesetReader;
    3332import org.openstreetmap.josm.plugins.graphview.core.visualisation.ColorScheme;
Note: See TracChangeset for help on using the changeset viewer.