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

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

Location:
trunk/src/org/openstreetmap/josm/actions
Files:
16 edited

Legend:

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

    r8795 r8840  
    6262        private double angle;
    6363        private EastNorth origin = new EastNorth(0, 0);
    64         private double azimuth = 0;
     64        private double azimuth;
    6565
    6666        PolarCoor(double radius, double angle) {
  • trunk/src/org/openstreetmap/josm/actions/CombineWayAction.java

    r8513 r8840  
    464464
    465465        private Set<NodePair> edges;
    466         private int numUndirectedEges = 0;
     466        private int numUndirectedEges;
    467467        private Map<Node, List<NodePair>> successors;
    468468        private Map<Node, List<NodePair>> predecessors;
  • trunk/src/org/openstreetmap/josm/actions/JoinAreasAction.java

    r8836 r8840  
    5555    // This will be used to commit commands and unite them into one large command sequence at the end
    5656    private final LinkedList<Command> cmds = new LinkedList<>();
    57     private int cmdsCount = 0;
     57    private int cmdsCount;
    5858    private final transient List<Relation> addedRelations = new LinkedList<>();
    5959
  • trunk/src/org/openstreetmap/josm/actions/OpenFileAction.java

    r8757 r8840  
    101101        private final FileFilter fileFilter;
    102102        private boolean canceled;
    103         private boolean recordHistory = false;
     103        private boolean recordHistory;
    104104
    105105        public OpenFileTask(final List<File> files, final FileFilter fileFilter, final String title) {
  • trunk/src/org/openstreetmap/josm/actions/downloadtasks/AbstractDownloadTask.java

    r8510 r8840  
    1313public abstract class AbstractDownloadTask implements DownloadTask {
    1414    private List<Object> errorMessages;
    15     private boolean canceled = false;
    16     private boolean failed = false;
     15    private boolean canceled;
     16    private boolean failed;
    1717
    1818    public AbstractDownloadTask() {
  • trunk/src/org/openstreetmap/josm/actions/downloadtasks/DownloadGpsTask.java

    r8836 r8840  
    4444    private static final String PATTERN_EXTERNAL_GPX_FILE = "https?://.*/(.*\\.gpx)";
    4545
    46     protected String newLayerName = null;
     46    protected String newLayerName;
    4747
    4848    @Override
  • trunk/src/org/openstreetmap/josm/actions/downloadtasks/DownloadOsmTask.java

    r8540 r8840  
    4747    protected DownloadTask downloadTask;
    4848
    49     protected String newLayerName = null;
     49    protected String newLayerName;
    5050
    5151    @Override
  • trunk/src/org/openstreetmap/josm/actions/mapmode/DeleteAction.java

    r8674 r8840  
    4747public class DeleteAction extends MapMode implements ModifierListener {
    4848    // Cache previous mouse event (needed when only the modifier keys are pressed but the mouse isn't moved)
    49     private MouseEvent oldEvent = null;
     49    private MouseEvent oldEvent;
    5050
    5151    /**
     
    5454     * set would have to be checked.
    5555     */
    56     private transient WaySegment oldHighlightedWaySegment = null;
     56    private transient WaySegment oldHighlightedWaySegment;
    5757
    5858    private static final HighlightHelper highlightHelper = new HighlightHelper();
  • trunk/src/org/openstreetmap/josm/actions/mapmode/DrawAction.java

    r8836 r8840  
    8080    private final Cursor cursorJoinWay;
    8181
    82     private transient Node lastUsedNode = null;
     82    private transient Node lastUsedNode;
    8383    private double toleranceMultiplier;
    8484
     
    9494    private transient Set<OsmPrimitive> newHighlights = new HashSet<>();
    9595    private boolean drawHelperLine;
    96     private boolean wayIsFinished = false;
     96    private boolean wayIsFinished;
    9797    private boolean drawTargetHighlight;
    9898    private Point mousePos;
  • trunk/src/org/openstreetmap/josm/actions/mapmode/ExtrudeAction.java

    r8839 r8840  
    6969     * If {@code true}, when extruding create new node(s) even if segments are parallel.
    7070     */
    71     private boolean alwaysCreateNodes = false;
     71    private boolean alwaysCreateNodes;
    7272    private boolean nodeDragWithoutCtrl;
    7373
    74     private long mouseDownTime = 0;
    75     private transient WaySegment selectedSegment = null;
    76     private transient Node selectedNode = null;
     74    private long mouseDownTime;
     75    private transient WaySegment selectedSegment;
     76    private transient Node selectedNode;
    7777    private Color mainColor;
    7878    private transient Stroke mainStroke;
     
    180180    private transient ReferenceSegment dualAlignSegment1, dualAlignSegment2;
    181181    /** {@code true}, if new segment was collapsed */
    182     private boolean dualAlignSegmentCollapsed = false;
     182    private boolean dualAlignSegmentCollapsed;
    183183    // Dual alignment UI stuff
    184184    private final DualAlignChangeAction dualAlignChangeAction;
  • trunk/src/org/openstreetmap/josm/actions/mapmode/ImproveWayAccuracyAction.java

    r8510 r8840  
    6565
    6666    private transient Way targetWay;
    67     private transient Node candidateNode = null;
    68     private transient WaySegment candidateSegment = null;
    69 
    70     private Point mousePos = null;
    71     private boolean dragging = false;
     67    private transient Node candidateNode;
     68    private transient WaySegment candidateSegment;
     69
     70    private Point mousePos;
     71    private boolean dragging;
    7272
    7373    private final Cursor cursorSelect;
     
    8686    private int dotSize;
    8787
    88     private boolean selectionChangedBlocked = false;
     88    private boolean selectionChangedBlocked;
    8989
    9090    protected String oldModeHelpText;
  • trunk/src/org/openstreetmap/josm/actions/mapmode/PlayHeadDragMode.java

    r8444 r8840  
    2020public class PlayHeadDragMode extends MapMode {
    2121
    22     private boolean dragging = false;
    23     private Point mousePos = null;
    24     private Point mouseStart = null;
    25     private transient PlayHeadMarker playHeadMarker = null;
     22    private boolean dragging;
     23    private Point mousePos;
     24    private Point mouseStart;
     25    private transient PlayHeadMarker playHeadMarker;
    2626
    2727    /**
  • 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;
  • trunk/src/org/openstreetmap/josm/actions/search/SearchAction.java

    r8836 r8840  
    125125    }
    126126
    127     private static volatile SearchSetting lastSearch = null;
     127    private static volatile SearchSetting lastSearch;
    128128
    129129    /**
  • trunk/src/org/openstreetmap/josm/actions/search/SearchCompiler.java

    r8838 r8840  
    6262public class SearchCompiler {
    6363
    64     private boolean caseSensitive = false;
    65     private boolean regexSearch = false;
     64    private boolean caseSensitive;
     65    private boolean regexSearch;
    6666    private static String  rxErrorMsg = marktr("The regex \"{0}\" had a parse error at offset {1}, full error:\n\n{2}");
    6767    private static String  rxErrorMsgNoPos = marktr("The regex \"{0}\" had a parse error, full error:\n\n{1}");
  • trunk/src/org/openstreetmap/josm/actions/upload/UploadNotesTask.java

    r8836 r8840  
    3939    private class UploadTask extends PleaseWaitRunnable {
    4040
    41         private boolean isCanceled = false;
     41        private boolean isCanceled;
    4242        private Map<Note, Note> updatedNotes = new HashMap<>();
    4343        private Map<Note, Exception> failedNotes = new HashMap<>();
Note: See TracChangeset for help on using the changeset viewer.