Changeset 10598 in josm for trunk


Ignore:
Timestamp:
2016-07-23T01:07:25+02:00 (8 years ago)
Author:
Don-vip
Message:

sonar - pmd:ImmutableField - Immutable Field - gsoc-core

Location:
trunk/src/org/openstreetmap/josm
Files:
6 edited

Legend:

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

    r10463 r10598  
    623623        private boolean canceled;
    624624        private int foundMatches;
    625         private SearchReceiver resultReceiver;
     625        private final SearchReceiver resultReceiver;
    626626
    627627        private SearchTask(DataSet ds, SearchSetting setting, Collection<OsmPrimitive> selection, Predicate<OsmPrimitive> predicate,
  • trunk/src/org/openstreetmap/josm/gui/MapView.java

    r10596 r10598  
    325325    private static class WarningLayerPainter implements LayerPainter {
    326326        boolean warningPrinted = false;
    327         private Layer layer;
     327        private final Layer layer;
    328328
    329329        WarningLayerPainter(Layer layer) {
  • trunk/src/org/openstreetmap/josm/gui/layer/LayerManager.java

    r10507 r10598  
    102102        private final Layer removedLayer;
    103103        private final boolean lastLayer;
    104         private Collection<Layer> scheduleForRemoval = new ArrayList<>();
     104        private final Collection<Layer> scheduleForRemoval = new ArrayList<>();
    105105
    106106        LayerRemoveEvent(LayerManager source, Layer removedLayer) {
  • trunk/src/org/openstreetmap/josm/gui/layer/imagery/ImageryFilterSettings.java

    r10547 r10598  
    1818    protected SharpenImageProcessor sharpenImageProcessor = new SharpenImageProcessor();
    1919    protected ColorfulImageProcessor collorfulnessImageProcessor = new ColorfulImageProcessor();
    20     private List<FilterChangeListener> filterChangeListeners = new CopyOnWriteArrayList<>();
     20    private final List<FilterChangeListener> filterChangeListeners = new CopyOnWriteArrayList<>();
    2121
    2222    /**
  • trunk/src/org/openstreetmap/josm/tools/MemoryManager.java

    r10588 r10598  
    2828    private static final MemoryManager INSTANCE = new MemoryManager();
    2929
    30     private ArrayList<MemoryHandle<?>> activeHandles = new ArrayList<>();
     30    private final ArrayList<MemoryHandle<?>> activeHandles = new ArrayList<>();
    3131
    3232    protected MemoryManager() {
  • trunk/src/org/openstreetmap/josm/tools/bugreport/BugReport.java

    r10597 r10598  
    4242    private boolean includeData = true;
    4343    private boolean includeAllStackTraces;
    44     private ReportedException exception;
     44    private final ReportedException exception;
    4545    private final CopyOnWriteArrayList<BugReportListener> listeners = new CopyOnWriteArrayList<>();
    4646
Note: See TracChangeset for help on using the changeset viewer.