Ignore:
Timestamp:
2020-06-14T14:55:20+02:00 (4 years ago)
Author:
simon04
Message:

see #19334 - https://errorprone.info/bugpattern/UnusedVariable

File:
1 edited

Legend:

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

    r16438 r16625  
    317317                }
    318318
    319                 // This try/catch is a hack to stop the flooding bug reports about this.
    320                 // The exception needed to handle with in the first place, means that this
    321                 // access to the data need to be restarted, if the main thread modifies the data.
    322                 DataSet ds = null;
    323319                // The popup != null check is required because a left-click produces several events as well,
    324320                // which would make this variable true. Of course we only want the popup to show
     
    328324                boolean middleMouseDown = (ms.modifiers & MouseEvent.BUTTON2_DOWN_MASK) != 0;
    329325
    330                 ds = mv.getLayerManager().getActiveDataSet();
     326                DataSet ds = mv.getLayerManager().getActiveDataSet();
    331327                if (ds != null) {
    332328                    // This is not perfect, if current dataset was changed during execution, the lock would be useless
     
    340336                    }
    341337                }
     338                // This try/catch is a hack to stop the flooding bug reports about this.
     339                // The exception needed to handle with in the first place, means that this
     340                // access to the data need to be restarted, if the main thread modifies the data.
    342341                try {
    343342                    // Set the text label in the bottom status bar
Note: See TracChangeset for help on using the changeset viewer.