Ignore:
Timestamp:
2015-05-11T10:52:33+02:00 (9 years ago)
Author:
Don-vip
Message:

code style - Useless parentheses around expressions should be removed to prevent any misunderstanding

Location:
trunk/src/org/openstreetmap/josm/gui/widgets
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/widgets/FileChooserManager.java

    r7937 r8345  
    7272        this.lastDirProperty = lastDirProperty == null || lastDirProperty.isEmpty() ? "lastDirectory" : lastDirProperty;
    7373        this.curDir = Main.pref.get(this.lastDirProperty).isEmpty() ?
    74                 (defaultDir == null || defaultDir.isEmpty() ? "." : defaultDir)
     74                defaultDir == null || defaultDir.isEmpty() ? "." : defaultDir
    7575                : Main.pref.get(this.lastDirProperty);
    7676    }
  • trunk/src/org/openstreetmap/josm/gui/widgets/MultiSplitLayout.java

    r8342 r8345  
    560560            Split split = (Split)root;
    561561            boolean grow = split.isRowLayout()
    562             ? (split.getBounds().width <= bounds.width)
     562            ? split.getBounds().width <= bounds.width
    563563                    : (split.getBounds().height <= bounds.height);
    564564            if (grow) {
     
    11221122
    11231123    private static void parseAttribute(String name, StreamTokenizer st, Node node) throws Exception {
    1124         if ((st.nextToken() != '=')) {
     1124        if (st.nextToken() != '=') {
    11251125            throwParseException(st, "expected '=' after " + name);
    11261126        }
Note: See TracChangeset for help on using the changeset viewer.