Ignore:
Timestamp:
2016-09-03T12:42:28+02:00 (3 years ago)
Author:
Don-vip
Message:

sonar - pmd:ImmutableField - Immutable Field

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

Legend:

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

    r10936 r10939  
    3535    private static final class WeakListener<T> {
    3636
    37         private WeakReference<T> listener;
     37        private final WeakReference<T> listener;
    3838
    3939        WeakListener(T listener) {
     
    6262        @Override
    6363        public String toString() {
    64             return "WeakListener [listener=" + listener + "]";
     64            return "WeakListener [listener=" + listener + ']';
    6565        }
    6666    }
     
    165165     */
    166166    public static class TracingListenerList<T> extends ListenerList<T> {
    167         private HashMap<T, StackTraceElement[]> listenersAdded = new HashMap<>();
    168         private HashMap<T, StackTraceElement[]> listenersRemoved = new HashMap<>();
     167        private final HashMap<T, StackTraceElement[]> listenersAdded = new HashMap<>();
     168        private final HashMap<T, StackTraceElement[]> listenersRemoved = new HashMap<>();
    169169
    170170        protected TracingListenerList() {
  • trunk/src/org/openstreetmap/josm/tools/bugreport/BugReportQueue.java

    r10886 r10939  
    2020    private static final BugReportQueue INSTANCE = new BugReportQueue();
    2121
    22     private LinkedList<ReportedException> reportsToDisplay = new LinkedList<>();
     22    private final LinkedList<ReportedException> reportsToDisplay = new LinkedList<>();
    2323    private boolean suppressAllMessages;
    24     private ArrayList<ReportedException> suppressFor = new ArrayList<>();
     24    private final ArrayList<ReportedException> suppressFor = new ArrayList<>();
    2525    private Thread displayThread;
    2626    private final BiFunction<ReportedException, Integer, SuppressionMode> bugReportHandler = getBestHandler();
Note: See TracChangeset for help on using the changeset viewer.