Ignore:
Timestamp:
2024-04-22T20:59:26+02:00 (6 weeks ago)
Author:
taylor.smock
Message:

Revert most var changes from r19048, fix most new compile warnings and checkstyle issues

Also, document why various ErrorProne checks were originally disabled and fix
generic SonarLint issues.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/layer/geoimage/ImageDisplay.java

    r18947 r19050  
    119119    private boolean destroyed;
    120120
    121     private class UpdateImageThread extends Thread {
     121    private final class UpdateImageThread extends Thread {
    122122        private boolean restart;
    123123
     
    146146        if (e == null ||
    147147            e.getKey().equals(AGPIFO_STYLE.getKey())) {
    148             dragButton = AGPIFO_STYLE.get() ? 1 : 3;
     148            dragButton = Boolean.TRUE.equals(AGPIFO_STYLE.get()) ? 1 : 3;
    149149            zoomButton = dragButton == 1 ? 3 : 1;
    150150        }
     
    320320    }
    321321
    322     private class ImgDisplayMouseListener extends MouseAdapter {
     322    private final class ImgDisplayMouseListener extends MouseAdapter {
    323323
    324324        private MouseEvent lastMouseEvent;
     
    434434                return;
    435435
    436             if (ZOOM_ON_CLICK.get()) {
     436            if (Boolean.TRUE.equals(ZOOM_ON_CLICK.get())) {
    437437                // click notions are less coherent than wheel, refresh mousePointInImg on each click
    438438                lastMouseEvent = null;
Note: See TracChangeset for help on using the changeset viewer.