Ignore:
Timestamp:
2015-10-09T02:12:45+02:00 (9 years ago)
Author:
Don-vip
Message:

sonar - squid:S3052 - Fields should not be initialized to default values

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/mapmode/SelectAction.java

    r8836 r8840  
    116116    }
    117117
    118     private boolean lassoMode = false;
     118    private boolean lassoMode;
    119119    public boolean repeatedKeySwitchLassoOption;
    120120
    121121    // Cache previous mouse event (needed when only the modifier keys are
    122122    // pressed but the mouse isn't moved)
    123     private MouseEvent oldEvent = null;
    124 
    125     private Mode mode = null;
     123    private MouseEvent oldEvent;
     124
     125    private Mode mode;
    126126    private final transient SelectionManager selectionManager;
    127     private boolean cancelDrawMode = false;
     127    private boolean cancelDrawMode;
    128128    private boolean drawTargetHighlight;
    129     private boolean didMouseDrag = false;
     129    private boolean didMouseDrag;
    130130    /**
    131131     * The component this SelectAction is associated with.
     
    147147     * The time of the user mouse down event.
    148148     */
    149     private long mouseDownTime = 0;
     149    private long mouseDownTime;
    150150    /**
    151151     * The pressed button of the user mouse down event.
    152152     */
    153     private int mouseDownButton = 0;
     153    private int mouseDownButton;
    154154    /**
    155155     * The time of the user mouse down event.
    156156     */
    157     private long mouseReleaseTime = 0;
     157    private long mouseReleaseTime;
    158158    /**
    159159     * The time which needs to pass between click and release before something
     
    166166     */
    167167    private int initialMoveThreshold;
    168     private boolean initialMoveThresholdExceeded = false;
     168    private boolean initialMoveThresholdExceeded;
    169169
    170170    /**
     
    991991
    992992        private Collection<OsmPrimitive> cycleList = Collections.emptyList();
    993         private boolean cyclePrims = false;
    994         private OsmPrimitive cycleStart = null;
     993        private boolean cyclePrims;
     994        private OsmPrimitive cycleStart;
    995995        private boolean waitForMouseUpParameter;
    996996        private boolean multipleMatchesParameter;
     
    11301130    private class VirtualManager {
    11311131
    1132         private Node virtualNode = null;
     1132        private Node virtualNode;
    11331133        private Collection<WaySegment> virtualWays = new LinkedList<>();
    11341134        private int nodeVirtualSize;
Note: See TracChangeset for help on using the changeset viewer.