Ignore:
Timestamp:
2013-07-30T18:35:47+02:00 (11 years ago)
Author:
akks
Message:

see #8902 - collection size ==/!= 0 -> isEmpty()/!isEmpty() (patch by shinigami)

File:
1 edited

Legend:

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

    r6084 r6093  
    239239                Main.main.addLayer(layer);
    240240
    241                 if (! canceled && layer.data.size() > 0) {
     241                if (!canceled && !layer.data.isEmpty()) {
    242242                    boolean noGeotagFound = true;
    243243                    for (ImageEntry e : layer.data) {
     
    633633
    634634    public void showPreviousPhoto() {
    635         if (data != null && data.size() > 0) {
     635        if (data != null && !data.isEmpty()) {
    636636            currentPhoto--;
    637637            if (currentPhoto < 0) {
Note: See TracChangeset for help on using the changeset viewer.