Ignore:
Timestamp:
2014-04-29T03:24:57+02:00 (10 years ago)
Author:
Don-vip
Message:

Sonar - fix various issues

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/history/HistoryBrowserDialogManager.java

    r7005 r7025  
    184184                    BugReportExceptionHandler.handleException(e);
    185185                }
    186 
    187186            }
    188187        };
     
    200199                // reload if the history is not in the cache yet
    201200                return true;
    202             else if (!p.isNew() && h.getByVersion(p.getUniqueId()) == null)
     201            else
    203202                // reload if the history object of the selected object is not in the cache yet
    204                 return true;
    205             else
    206                 return false;
     203                return (!p.isNew() && h.getByVersion(p.getUniqueId()) == null);
    207204        }
    208205    };
     
    215212        }
    216213    };
    217 
    218214}
Note: See TracChangeset for help on using the changeset viewer.