Changeset 13537 in josm for trunk


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
Files:
3 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)) {
  • trunk/src/org/openstreetmap/josm/io/CachedFile.java

    r13536 r13537  
    184184
    185185    public String getName() {
    186         if(parameter != null)
     186        if (parameter != null)
    187187            return name.replaceAll("%<(.*)>", "");
    188188        return name;
     
    478478        }
    479479
    480         if(parameter != null) {
     480        if (parameter != null) {
    481481            String u = url.toExternalForm();
    482482            String uc;
    483             if("".equals(parameter)) {
     483            if (parameter.isEmpty()) {
    484484                uc = u.replaceAll("%<(.*)>", "");
    485485            } else {
    486486                uc = u.replaceAll("%<(.*)>", "$1"+parameter);
    487487            }
    488             if(!uc.equals(u))
     488            if (!uc.equals(u))
    489489                url = new URL(uc);
    490490        }
Note: See TracChangeset for help on using the changeset viewer.