Changeset 6113 in josm


Ignore:
Timestamp:
2013-08-06T22:02:27+02:00 (6 years ago)
Author:
Don-vip
Message:

fix some compilation warnings

Location:
trunk/src/org/openstreetmap/josm
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/command/PurgeCommand.java

    r6069 r6113  
    192192
    193193        /**
    194             * Rest are relations. Do topological sorting on a DAG where each
    195             * arrow points from child to parent. (Because it is faster to
    196             * loop over getReferrers() than getMembers().)
    197             */
     194          * Rest are relations. Do topological sorting on a DAG where each
     195          * arrow points from child to parent. (Because it is faster to
     196          * loop over getReferrers() than getMembers().)
     197          */
     198        @SuppressWarnings({ "unchecked", "rawtypes" })
    198199        Set<Relation> inR = (Set) in;
    199200        Set<Relation> childlessR = new HashSet<Relation>();
  • trunk/src/org/openstreetmap/josm/data/osm/QuadBuckets.java

    r6093 r6113  
    102102            // testing.  Child access is one of the single
    103103            // hottest code paths in this entire class.
     104            @SuppressWarnings("unchecked")
    104105            QBLevel[] result = (QBLevel[]) Array.newInstance(this.getClass(), QuadTiling.TILES_PER_LEVEL);
    105106            result[NW_INDEX] = nw;
  • trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/WireframeMapRenderer.java

    r6084 r6113  
    154154     * @param bounds display boundaries
    155155     */
     156    @SuppressWarnings("unchecked")
    156157    @Override
    157158    public void render(DataSet data, boolean virtual, Bounds bounds) {
  • trunk/src/org/openstreetmap/josm/data/validation/tests/RelationChecker.java

    r6093 r6113  
    8888    }
    8989
     90    @SuppressWarnings("unchecked")
    9091    @Override
    9192    public void visit(Relation n) {
  • trunk/src/org/openstreetmap/josm/gui/dialogs/properties/TagEditHelper.java

    r6101 r6113  
    158158        objKey=key;
    159159       
     160        @SuppressWarnings("unchecked")
    160161        final EditTagDialog editDialog = new EditTagDialog(key, row,
    161162                (Map<String, Integer>) propertyData.getValueAt(row, 1), focusOnKey);
     
    164165        editDialog.performTagEdit();
    165166    }
     167   
    166168    /**
    167169     * If during last editProperty call user changed the key name, this key will be returned
  • trunk/src/org/openstreetmap/josm/tools/Geometry.java

    r6093 r6113  
    4949    public static Set<Node> addIntersections(List<Way> ways, boolean test, List<Command> cmds) {
    5050
    51         //stupid java, cannot instantiate array of generic classes..
     51        int n = ways.size();
    5252        @SuppressWarnings("unchecked")
    53         int n = ways.size();
    5453        ArrayList<Node>[] newNodes = new ArrayList[n];
    5554        BBox[] wayBounds = new BBox[n];
     
    6766        //iterate over all way pairs and introduce the intersections
    6867        Comparator<Node> coordsComparator = new NodePositionComparator();
    69         WayLoop: for (int seg1Way = 0; seg1Way < n; seg1Way ++) {
     68        for (int seg1Way = 0; seg1Way < n; seg1Way ++) {
    7069            for (int seg2Way = seg1Way; seg2Way < n; seg2Way ++) {
    7170
Note: See TracChangeset for help on using the changeset viewer.