Ignore:
Timestamp:
2013-10-07T00:04:48+02:00 (11 years ago)
Author:
Don-vip
Message:

Sonar/FindBugs - Nested blocks of code should not be left empty

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/NavigatableComponent.java

    r6258 r6310  
    478478     */
    479479    public void smoothScrollTo(EastNorth newCenter) {
    480         // fixme make these configurable.
     480        // FIXME make these configurable.
    481481        final int fps = 20;     // animation frames per second
    482482        final int speed = 1500; // milliseconds for full-screen-width pan
     
    491491                @Override
    492492                public void run() {
    493                     for (int i=0; i<frames; i++)
    494                     {
    495                         // fixme - not use zoom history here
     493                    for (int i=0; i<frames; i++) {
     494                        // FIXME - not use zoom history here
    496495                        zoomTo(oldCenter.interpolate(finalNewCenter, (i+1) / frames));
    497                         try { Thread.sleep(1000 / fps); } catch (InterruptedException ex) { }
     496                        try {
     497                            Thread.sleep(1000 / fps);
     498                        } catch (InterruptedException ex) {
     499                            Main.warn(ex);
     500                        }
    498501                    }
    499502                }
Note: See TracChangeset for help on using the changeset viewer.