Changeset 30426 in osm for applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/AbstractLayer.java
- Timestamp:
- 2014-04-29T00:12:00+02:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/AbstractLayer.java
r30240 r30426 72 72 public static <E> List<E> add(List<E> list, E element) { 73 73 if(element!=null){ 74 if(list==null) list = new ArrayList< E>();74 if(list==null) list = new ArrayList<>(); 75 75 if(!list.contains(element)) list.add(element); 76 76 }
Note:
See TracChangeset
for help on using the changeset viewer.