Ignore:
Timestamp:
2015-05-09T12:49:35+02:00 (9 years ago)
Author:
Don-vip
Message:

code style - Close curly brace and the next "else", "catch" and "finally" keywords should be located on the same line

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/command/ChangePropertyCommand.java

    r8338 r8342  
    9797                        // new value is null and tag exists (will delete tag)
    9898                        modified = true;
    99                 }
    100                 else if (oldVal == null || !newVal.equals(oldVal))
     99                } else if (oldVal == null || !newVal.equals(oldVal))
    101100                    // new value is not null and is different from current value
    102101                    modified = true;
     
    121120                        if (oldVal != null)
    122121                            osm.remove(tag.getKey());
    123                     }
    124                     else if (oldVal == null || !newVal.equals(oldVal))
     122                    } else if (oldVal == null || !newVal.equals(oldVal))
    125123                        osm.put(tag.getKey(), newVal);
    126124                }
     
    130128            }
    131129            return true;
    132         }
    133         finally {
     130        } finally {
    134131            Main.main.getCurrentDataSet().endUpdate();
    135132        }
     
    171168                text = trn("Set {0}={1} for {2} object", "Set {0}={1} for {2} objects", objects.size(), entry.getKey(), entry.getValue(), objects.size());
    172169            }
    173         }
    174         else {
     170        } else {
    175171            boolean allnull = true;
    176172            for (Map.Entry<String, String> tag : this.tags.entrySet()) {
Note: See TracChangeset for help on using the changeset viewer.