Ignore:
Timestamp:
2015-04-28T00:49:49+02:00 (9 years ago)
Author:
Don-vip
Message:

fix sonar squid:S2039 - Member variable visibility should be specified

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

Legend:

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

    r8061 r8285  
    9191    private static List<GpxData> loadedGpxData = new ArrayList<>();
    9292
    93     GeoImageLayer yLayer = null;
    94     double timezone;
    95     long delta;
     93    private GeoImageLayer yLayer = null;
     94    private double timezone;
     95    private long delta;
    9696
    9797    /**
     
    105105
    106106    private static class GpxDataWrapper {
    107         String name;
    108         GpxData data;
    109         File file;
     107        private String name;
     108        private GpxData data;
     109        private File file;
    110110
    111111        public GpxDataWrapper(String name, GpxData data, File file) {
     
    121121    }
    122122
    123     ExtendedDialog syncDialog;
    124     List<GpxDataWrapper> gpxLst = new ArrayList<>();
    125     JPanel outerPanel;
    126     JosmComboBox<GpxDataWrapper> cbGpx;
    127     JosmTextField tfTimezone;
    128     JosmTextField tfOffset;
    129     JCheckBox cbExifImg;
    130     JCheckBox cbTaggedImg;
    131     JCheckBox cbShowThumbs;
    132     JLabel statusBarText;
     123    private ExtendedDialog syncDialog;
     124    private List<GpxDataWrapper> gpxLst = new ArrayList<>();
     125    private JPanel outerPanel;
     126    private JosmComboBox<GpxDataWrapper> cbGpx;
     127    private JosmTextField tfTimezone;
     128    private JosmTextField tfOffset;
     129    private JCheckBox cbExifImg;
     130    private JCheckBox cbTaggedImg;
     131    private JCheckBox cbShowThumbs;
     132    private JLabel statusBarText;
    133133
    134134    // remember the last number of matched photos
    135     int lastNumMatched = 0;
     135    private int lastNumMatched = 0;
    136136
    137137    /** This class is called when the user doesn't find the GPX file he needs in the files that have
     
    231231     */
    232232    private class SetOffsetActionListener implements ActionListener {
    233         JPanel panel;
    234         JLabel lbExifTime;
    235         JosmTextField tfGpsTime;
    236         JosmComboBox<String> cbTimezones;
    237         ImageDisplay imgDisp;
    238         JList<String> imgList;
     233        private JPanel panel;
     234        private JLabel lbExifTime;
     235        private JosmTextField tfGpsTime;
     236        private JosmComboBox<String> cbTimezones;
     237        private ImageDisplay imgDisp;
     238        private JList<String> imgList;
    239239
    240240        @Override
     
    665665        syncDialog.pack();
    666666        syncDialog.addWindowListener(new WindowAdapter() {
    667             static final int CANCEL = -1;
    668             static final int DONE = 0;
    669             static final int AGAIN = 1;
    670             static final int NOTHING = 2;
     667            private static final int CANCEL = -1;
     668            private static final int DONE = 0;
     669            private static final int AGAIN = 1;
     670            private static final int NOTHING = 2;
    671671            private int checkAndSave() {
    672672                if (syncDialog.isVisible())
     
    764764    }
    765765
    766     StatusBarUpdater statusBarUpdater = new StatusBarUpdater(false);
    767     StatusBarUpdater statusBarUpdaterWithRepaint = new StatusBarUpdater(true);
     766    private StatusBarUpdater statusBarUpdater = new StatusBarUpdater(false);
     767    private StatusBarUpdater statusBarUpdaterWithRepaint = new StatusBarUpdater(true);
    768768
    769769    private class StatusBarUpdater implements  DocumentListener, ItemListener, ActionListener {
     
    835835    }
    836836
    837     RepaintTheMapListener repaintTheMap = new RepaintTheMapListener();
     837    private RepaintTheMapListener repaintTheMap = new RepaintTheMapListener();
    838838    private class RepaintTheMapListener implements FocusListener {
    839839        @Override
  • trunk/src/org/openstreetmap/josm/gui/layer/geoimage/GeoImageLayer.java

    r8243 r8285  
    9494
    9595    boolean useThumbs = false;
    96     ExecutorService thumbsLoaderExecutor = Executors.newSingleThreadExecutor(new ThreadFactory() {
     96    private ExecutorService thumbsLoaderExecutor = Executors.newSingleThreadExecutor(new ThreadFactory() {
    9797        @Override
    9898        public Thread newThread(Runnable r) {
     
    102102        }
    103103    });
    104     ThumbsLoader thumbsloader;
    105     boolean thumbsLoaderRunning = false;
     104    private ThumbsLoader thumbsloader;
     105    private boolean thumbsLoaderRunning = false;
    106106    volatile boolean thumbsLoaded = false;
    107107    private BufferedImage offscreenBuffer;
  • trunk/src/org/openstreetmap/josm/gui/layer/geoimage/ImageDisplay.java

    r7956 r8285  
    135135    private class ImgDisplayMouseListener implements MouseListener, MouseWheelListener, MouseMotionListener {
    136136
    137         boolean mouseIsDragging = false;
    138         long lastTimeForMousePoint = 0L;
    139         Point mousePointInImg = null;
     137        private boolean mouseIsDragging = false;
     138        private long lastTimeForMousePoint = 0L;
     139        private Point mousePointInImg = null;
    140140
    141141        /** 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/ThumbsLoader.java

    r7956 r8285  
    2020    public static final int minSize = 22;
    2121    public volatile boolean stop = false;
    22     List<ImageEntry> data;
    23     GeoImageLayer layer;
    24     MediaTracker tracker;
    25     CacheFiles cache;
    26     boolean cacheOff = Main.pref.getBoolean("geoimage.noThumbnailCache", false);
     22    private List<ImageEntry> data;
     23    private GeoImageLayer layer;
     24    private MediaTracker tracker;
     25    private CacheFiles cache;
     26    private boolean cacheOff = Main.pref.getBoolean("geoimage.noThumbnailCache", false);
    2727
    2828    public ThumbsLoader(GeoImageLayer layer) {
Note: See TracChangeset for help on using the changeset viewer.