Ignore:
Timestamp:
2013-09-19T02:14:38+02:00 (11 years ago)
Author:
Don-vip
Message:

Sonar - fix recently introduced issues

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/osm/QuadBuckets.java

    r6232 r6235  
    124124                return this;
    125125            else {
    126                 int index = bbox.getIndex(level);
    127                 if (index == -1)
     126                int idx = bbox.getIndex(level);
     127                if (idx == -1)
    128128                    return this;
    129                 return getChild(index).findBucket(bbox);
     129                return getChild(idx).findBucket(bbox);
    130130            }
    131131        }
     
    160160
    161161            for (T o : tmpcontent) {
    162                 int index = o.getBBox().getIndex(level);
    163                 if (index == -1) {
     162                int idx = o.getBBox().getIndex(level);
     163                if (idx == -1) {
    164164                    __add_content(o);
    165165                } else {
    166                     getChild(index).doAdd(o);
     166                    getChild(idx).doAdd(o);
    167167                }
    168168            }
Note: See TracChangeset for help on using the changeset viewer.