Changeset 12192 in josm


Ignore:
Timestamp:
2017-05-16T00:07:12+02:00 (8 years ago)
Author:
michael2402
Message:

Fix some Sonar warnings for ListenableWeakReference

File:
1 edited

Legend:

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

    r12181 r12192  
    1818 */
    1919public class ListenableWeakReference<T> extends WeakReference<T> {
    20     private static ReferenceQueue<Object> GLOBAL_QUEUE = new ReferenceQueue<>();
     20    private static final ReferenceQueue<Object> GLOBAL_QUEUE = new ReferenceQueue<>();
    2121    private static Thread thread;
    2222    private Runnable runOnDereference;
     
    6565        } catch (InterruptedException e) {
    6666            BugReport.intercept(e).warn();
     67            Thread.currentThread().interrupt();
    6768        }
    6869    }
Note: See TracChangeset for help on using the changeset viewer.