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

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

Location:
trunk/src/org/openstreetmap/josm/tools
Files:
10 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/tools/AudioPlayer.java

    r8510 r8840  
    2626public final class AudioPlayer extends Thread {
    2727
    28     private static volatile AudioPlayer audioPlayer = null;
     28    private static volatile AudioPlayer audioPlayer;
    2929
    3030    private enum State { INITIALIZING, NOTPLAYING, PLAYING, PAUSED, INTERRUPTED }
  • trunk/src/org/openstreetmap/josm/tools/BugReportExceptionHandler.java

    r8836 r8840  
    4141public final class BugReportExceptionHandler implements Thread.UncaughtExceptionHandler {
    4242
    43     private static boolean handlingInProgress = false;
    44     private static volatile BugReporterThread bugReporterThread = null;
    45     private static int exceptionCounter = 0;
    46     private static boolean suppressExceptionDialogs = false;
     43    private static boolean handlingInProgress;
     44    private static volatile BugReporterThread bugReporterThread;
     45    private static int exceptionCounter;
     46    private static boolean suppressExceptionDialogs;
    4747
    4848    private static class BugReporterThread extends Thread {
  • trunk/src/org/openstreetmap/josm/tools/CopyList.java

    r8394 r8840  
    148148         * Index of element to be returned by subsequent call to next.
    149149         */
    150         private int cursor = 0;
     150        private int cursor;
    151151
    152152        /**
  • trunk/src/org/openstreetmap/josm/tools/Diff.java

    r8624 r8840  
    107107    With this heuristic, for files with a constant small density
    108108    of changes, the algorithm is linear in the file size.  */
    109     public boolean heuristic = false;
     109    public boolean heuristic;
    110110
    111111    /** When set to true, the algorithm returns a guarranteed minimal
    112112      set of changes.  This makes things slower, sometimes much slower. */
    113     public boolean noDiscards = false;
     113    public boolean noDiscards;
    114114
    115115    private int[] xvec, yvec; /* Vectors being compared. */
     
    376376    }
    377377
    378     private boolean inhibit = false;
     378    private boolean inhibit;
    379379
    380380    /** Adjust inserts/deletes of blank lines to join changes
  • trunk/src/org/openstreetmap/josm/tools/I18n.java

    r8513 r8840  
    171171        "OptionPane.cancelButtonText"
    172172    };
    173     private static volatile Map<String, String> strings = null;
    174     private static volatile Map<String, String[]> pstrings = null;
     173    private static volatile Map<String, String> strings;
     174    private static volatile Map<String, String[]> pstrings;
    175175    private static Map<String, PluralMode> languages = new HashMap<>();
    176176
  • trunk/src/org/openstreetmap/josm/tools/ImageProvider.java

    r8836 r8840  
    184184    protected Collection<ClassLoader> additionalClassLoaders;
    185185    /** ordered list of overlay images */
    186     protected List<ImageOverlay> overlayInfo = null;
     186    protected List<ImageOverlay> overlayInfo;
    187187
    188188    private static SVGUniverse svgUniverse;
  • trunk/src/org/openstreetmap/josm/tools/ImageResource.java

    r8723 r8840  
    4040     * ordered list of overlay images
    4141     */
    42     protected List<ImageOverlay> overlayInfo = null;
    43     private Image baseImage = null;
     42    protected List<ImageOverlay> overlayInfo;
     43    private Image baseImage;
    4444
    4545    /**
  • trunk/src/org/openstreetmap/josm/tools/Shortcut.java

    r8720 r8840  
    311311
    312312    // bootstrap
    313     private static boolean initdone = false;
     313    private static boolean initdone;
    314314    private static void doInit() {
    315315        if (initdone) return;
  • trunk/src/org/openstreetmap/josm/tools/TextTagParser.java

    r8513 r8840  
    4040
    4141    public static class TextAnalyzer {
    42         private boolean quotesStarted = false;
    43         private boolean esc = false;
     42        private boolean quotesStarted;
     43        private boolean esc;
    4444        private StringBuilder s = new StringBuilder(200);
    4545        private int pos;
  • trunk/src/org/openstreetmap/josm/tools/XmlObjectParser.java

    r8836 r8840  
    232232     */
    233233    private List<Object> queue = new LinkedList<>();
    234     private Iterator<Object> queueIterator = null;
     234    private Iterator<Object> queueIterator;
    235235
    236236    /**
Note: See TracChangeset for help on using the changeset viewer.