Ignore:
Timestamp:
2015-06-20T23:42:21+02:00 (11 years ago)
Author:
Don-vip
Message:

checkstyle: enable relevant whitespace checks and fix them

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/dialogs/relation/RelationTree.java

    r8444 r8510  
    4646     * constructor
    4747     */
    48     public RelationTree(){
     48    public RelationTree() {
    4949        super();
    5050        build();
     
    6767    protected Dialog getParentDialog() {
    6868        Component c = RelationTree.this;
    69         while(c != null && !(c instanceof Dialog)) {
     69        while (c != null && !(c instanceof Dialog)) {
    7070            c = c.getParent();
    7171        }
    72         return (Dialog)c;
     72        return (Dialog) c;
    7373    }
    7474
     
    8989        public void treeWillExpand(TreeExpansionEvent event) throws ExpandVetoException {
    9090            TreePath path  = event.getPath();
    91             Relation parent = (Relation)event.getPath().getLastPathComponent();
     91            Relation parent = (Relation) event.getPath().getLastPathComponent();
    9292            if (!parent.isIncomplete() || parent.isNew())
    9393                // we don't load complete  or new relations
    9494                return;
    9595            // launch the download task
    96             //
    97             Main.worker.submit(new RelationLoader(getParentDialog(),parent, path));
     96            Main.worker.submit(new RelationLoader(getParentDialog(), parent, path));
    9897        }
    9998    }
     
    121120            this.path = path;
    122121        }
     122
    123123        @Override
    124124        protected void cancel() {
     
    140140                Main.main.getEditLayer().getConflicts().add(visitor.getConflicts());
    141141            }
    142             final RelationTreeModel model = (RelationTreeModel)getModel();
     142            final RelationTreeModel model = (RelationTreeModel) getModel();
    143143            SwingUtilities.invokeLater(
    144144                    new Runnable() {
     
    157157                ds = reader.parseOsm(progressMonitor
    158158                        .createSubTaskMonitor(ProgressMonitor.ALL_TICKS, false));
    159             } catch(Exception e) {
     159            } catch (Exception e) {
    160160                if (canceled) {
    161161                    Main.warn(tr("Ignoring exception because task was canceled. Exception: {0}", e.toString()));
Note: See TracChangeset for help on using the changeset viewer.