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

Location:
trunk/src/org/openstreetmap/josm/gui/layer/geoimage
Files:
6 edited

Legend:

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

    r8836 r8840  
    9292    private static List<GpxData> loadedGpxData = new ArrayList<>();
    9393
    94     private transient GeoImageLayer yLayer = null;
     94    private transient GeoImageLayer yLayer;
    9595    private double timezone;
    9696    private long delta;
     
    237237
    238238    // remember the last number of matched photos
    239     private int lastNumMatched = 0;
     239    private int lastNumMatched;
    240240
    241241    /** This class is called when the user doesn't find the GPX file he needs in the files that have
  • trunk/src/org/openstreetmap/josm/gui/layer/geoimage/GeoImageLayer.java

    r8836 r8840  
    9393    private int currentPhoto = -1;
    9494
    95     boolean useThumbs = false;
     95    boolean useThumbs;
    9696    private ExecutorService thumbsLoaderExecutor =
    9797            Executors.newSingleThreadExecutor(Utils.newThreadFactory("thumbnail-loader-%d", Thread.MIN_PRIORITY));
    9898    private ThumbsLoader thumbsloader;
    99     private boolean thumbsLoaderRunning = false;
    100     volatile boolean thumbsLoaded = false;
     99    private boolean thumbsLoaderRunning;
     100    volatile boolean thumbsLoaded;
    101101    private BufferedImage offscreenBuffer;
    102102    boolean updateOffscreenBuffer = true;
     
    109109    private static final class Loader extends PleaseWaitRunnable {
    110110
    111         private boolean canceled = false;
     111        private boolean canceled;
    112112        private GeoImageLayer layer;
    113113        private Collection<File> selection;
     
    902902    }
    903903
    904     private static volatile List<MapMode> supportedMapModes = null;
     904    private static volatile List<MapMode> supportedMapModes;
    905905
    906906    /**
     
    938938    }
    939939
    940     private MouseAdapter mouseAdapter = null;
    941     private MapModeChangeListener mapModeListener = null;
     940    private MouseAdapter mouseAdapter;
     941    private MapModeChangeListener mapModeListener;
    942942
    943943    @Override
  • trunk/src/org/openstreetmap/josm/gui/layer/geoimage/ImageDisplay.java

    r8836 r8840  
    3333
    3434    /** The file that is currently displayed */
    35     private File file = null;
     35    private File file;
    3636
    3737    /** The image currently displayed */
    38     private transient Image image = null;
     38    private transient Image image;
    3939
    4040    /** The image currently displayed */
    41     private boolean errorLoading = false;
     41    private boolean errorLoading;
    4242
    4343    /** The rectangle (in image coordinates) of the image that is visible. This rectangle is calculated
    4444     * each time the zoom is modified */
    45     private Rectangle visibleRect = null;
     45    private Rectangle visibleRect;
    4646
    4747    /** When a selection is done, the rectangle of the selection (in image coordinates) */
    48     private Rectangle selectedRect = null;
     48    private Rectangle selectedRect;
    4949
    5050    /** The tracker to load the images */
    5151    private MediaTracker tracker = new MediaTracker(this);
    5252
    53     private String osdText = null;
     53    private String osdText;
    5454
    5555    private static final int DRAG_BUTTON = Main.pref.getBoolean("geoimage.agpifo-style-drag-and-zoom", false) ? 1 : 3;
     
    136136    private class ImgDisplayMouseListener implements MouseListener, MouseWheelListener, MouseMotionListener {
    137137
    138         private boolean mouseIsDragging = false;
    139         private long lastTimeForMousePoint = 0L;
    140         private Point mousePointInImg = null;
     138        private boolean mouseIsDragging;
     139        private long lastTimeForMousePoint;
     140        private Point mousePointInImg;
    141141
    142142        /** Zoom in and out, trying to preserve the point of the image that was under the mouse cursor
  • trunk/src/org/openstreetmap/josm/gui/layer/geoimage/ImageEntry.java

    r8512 r8840  
    2323     * The flag can used to decide for which image file the EXIF GPS data is (re-)written.
    2424     */
    25     private boolean isNewGpsData = false;
     25    private boolean isNewGpsData;
    2626    /** Temporary source of GPS time if not correlated with GPX track. */
    27     private Date exifGpsTime = null;
     27    private Date exifGpsTime;
    2828    Image thumbnail;
    2929
  • trunk/src/org/openstreetmap/josm/gui/layer/geoimage/ImageViewerDialog.java

    r8836 r8840  
    4646
    4747    private ImageDisplay imgDisplay = new ImageDisplay();
    48     private boolean centerView = false;
     48    private boolean centerView;
    4949
    5050    // Only one instance of that class is present at one time
    5151    private static volatile ImageViewerDialog dialog;
    5252
    53     private boolean collapseButtonClicked = false;
     53    private boolean collapseButtonClicked;
    5454
    5555    static void newInstance() {
     
    276276    }
    277277
    278     private transient GeoImageLayer currentLayer = null;
    279     private transient ImageEntry currentEntry = null;
     278    private transient GeoImageLayer currentLayer;
     279    private transient ImageEntry currentEntry;
    280280
    281281    public void displayImage(GeoImageLayer layer, ImageEntry entry) {
  • trunk/src/org/openstreetmap/josm/gui/layer/geoimage/ThumbsLoader.java

    r8836 r8840  
    2626    public static final int maxSize = 120;
    2727    public static final int minSize = 22;
    28     public volatile boolean stop = false;
     28    public volatile boolean stop;
    2929    private List<ImageEntry> data;
    3030    private GeoImageLayer layer;
Note: See TracChangeset for help on using the changeset viewer.