Ignore:
Timestamp:
2018-03-18T03:59:43+01:00 (6 years ago)
Author:
Don-vip
Message:

see #14655 - checkstyle

Location:
trunk/src/org/openstreetmap/josm/data/imagery
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/imagery/ImageryInfo.java

    r13536 r13537  
    918918
    919919    /**
    920      * Return the sorted list of activated Imagery IDs
     920     * Return the sorted list of activated Imagery IDs.
     921     * @return sorted list of activated Imagery IDs
    921922     * @since 13536
    922923     */
    923     static public Collection<String> getActiveIds() {
    924         ArrayList<String> ids = new ArrayList<String>();
     924    public static Collection<String> getActiveIds() {
     925        ArrayList<String> ids = new ArrayList<>();
    925926        IPreferences pref = Config.getPref();
    926927        if (pref != null) {
     
    929930            if (entries != null) {
    930931                for (ImageryPreferenceEntry prefEntry : entries) {
    931                     if(prefEntry.id != null && prefEntry.id.length() != 0)
     932                    if (prefEntry.id != null && !prefEntry.id.isEmpty())
    932933                        ids.add(prefEntry.id);
    933934                }
     
    937938        return ids;
    938939    }
    939    
     940
    940941    /**
    941942     * Returns a tool tip text for display.
     
    12581259    /**
    12591260     * Returns the overlay indication.
    1260      * @return <code>true</code> if it is and overlay.
     1261     * @return <code>true</code> if it is an overlay.
    12611262     * @since 13536
    12621263     */
  • trunk/src/org/openstreetmap/josm/data/imagery/ImageryLayerInfo.java

    r13536 r13537  
    225225                idMap.put(i.getId(), i);
    226226                Collection<String> old = i.getOldIds();
    227                 if(old != null) {
     227                if (old != null) {
    228228                    for (String id : old) {
    229229                        if (idMap.containsKey(id)) {
Note: See TracChangeset for help on using the changeset viewer.