Changeset 8443 in josm for trunk/src/org/openstreetmap/josm


Ignore:
Timestamp:
2015-06-02T16:40:38+02:00 (9 years ago)
Author:
Don-vip
Message:

remove extra whitespaces

Location:
trunk/src/org/openstreetmap/josm
Files:
57 edited

Legend:

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

    r8412 r8443  
    505505        Main.map = map;
    506506
    507         for (MapFrameListener listener : mapFrameListeners ) {
     507        for (MapFrameListener listener : mapFrameListeners) {
    508508            listener.mapFrameInitialized(old, map);
    509509        }
  • trunk/src/org/openstreetmap/josm/actions/AbstractInfoAction.java

    r7771 r8443  
    9393        //
    9494        int max = Math.min(10, primitivesToShow.size());
    95         if (primitivesToShow.size() > max && ! confirmLaunchMultiple(primitivesToShow.size()))
     95        if (primitivesToShow.size() > max && !confirmLaunchMultiple(primitivesToShow.size()))
    9696            return;
    9797        for(int i = 0; i < max; i++) {
  • trunk/src/org/openstreetmap/josm/actions/AbstractMergeAction.java

    r7017 r8443  
    6868        ExtendedDialog ed = new ExtendedDialog(Main.parent,
    6969                tr("Select target layer"),
    70                 new String[] { tr("Merge"), tr("Cancel") });
    71         ed.setButtonIcons(new String[] { "dialogs/mergedown", "cancel" });
     70                new String[] {tr("Merge"), tr("Cancel")});
     71        ed.setButtonIcons(new String[] {"dialogs/mergedown", "cancel"});
    7272        ed.setContent(pnl);
    7373        ed.showDialog();
  • trunk/src/org/openstreetmap/josm/actions/AlignInLineAction.java

    r8393 r8443  
    127127        }
    128128
    129         return new Node[] { nodea, nodeb };
     129        return new Node[] {nodea, nodeb};
    130130    }
    131131
     
    155155        }
    156156
    157         return new Node[] { node1, node2 };
     157        return new Node[] {node1, node2};
    158158    }
    159159
  • trunk/src/org/openstreetmap/josm/actions/CombineWayAction.java

    r8440 r8443  
    511511
    512512            for (NodePair pair: edges) {
    513                 if (!undirectedEdges.contains(pair) && ! undirectedEdges.contains(pair.swap())) {
     513                if (!undirectedEdges.contains(pair) && !undirectedEdges.contains(pair.swap())) {
    514514                    undirectedEdges.add(pair);
    515515                }
     
    616616            while(!nextPairs.isEmpty()) {
    617617                NodePair cur= nextPairs.pop();
    618                 if (! path.contains(cur) && ! path.contains(cur.swap())) {
     618                if (!path.contains(cur) && !path.contains(cur.swap())) {
    619619                    while(!path.isEmpty() && !path.peek().isPredecessorOf(cur)) {
    620620                        path.pop();
  • trunk/src/org/openstreetmap/josm/actions/CreateMultipolygonAction.java

    r8419 r8443  
    348348        Set<String> conflictingKeys = new TreeSet<>();
    349349
    350         for( RelationMember m : relation.getMembers() ) {
    351 
    352             if( m.hasRole() && "inner".equals(m.getRole()) && m.isWay() && m.getWay().hasKeys() ) {
     350        for (RelationMember m : relation.getMembers()) {
     351
     352            if (m.hasRole() && "inner".equals(m.getRole()) && m.isWay() && m.getWay().hasKeys()) {
    353353                innerWays.add(m.getWay());
    354354            }
    355355
    356             if( m.hasRole() && "outer".equals(m.getRole()) && m.isWay() && m.getWay().hasKeys() ) {
     356            if (m.hasRole() && "outer".equals(m.getRole()) && m.isWay() && m.getWay().hasKeys()) {
    357357                Way way = m.getWay();
    358358                outerWays.add(way);
     
    403403            if (moveTags) {
    404404                // remove duplicated tags from outer ways
    405                 for( Way way : outerWays ) {
    406                     if( way.hasKey(key) ) {
     405                for (Way way : outerWays) {
     406                    if (way.hasKey(key)) {
    407407                        affectedWays.add(way);
    408408                    }
     
    422422            for (Entry<String, String> entry : values.entrySet()) {
    423423                String key = entry.getKey();
    424                 if (!r2.hasKey(key) && !"area".equals(key) ) {
     424                if (!r2.hasKey(key) && !"area".equals(key)) {
    425425                    if (relation.isNew())
    426426                        relation.put(key, entry.getValue());
  • trunk/src/org/openstreetmap/josm/actions/DownloadAction.java

    r7722 r8443  
    4242        dialog.restoreSettings();
    4343        dialog.setVisible(true);
    44         if (! dialog.isCanceled()) {
     44        if (!dialog.isCanceled()) {
    4545            dialog.rememberSettings();
    4646            Bounds area = dialog.getSelectedDownloadArea();
  • trunk/src/org/openstreetmap/josm/actions/GpxExportAction.java

    r8291 r8443  
    7979    public void export(Layer layer) {
    8080        CheckParameterUtil.ensureParameterNotNull(layer, "layer");
    81         if (! (layer instanceof OsmDataLayer) && ! (layer instanceof GpxLayer))
     81        if (!(layer instanceof OsmDataLayer) && !(layer instanceof GpxLayer))
    8282            throw new IllegalArgumentException(MessageFormat.format("Expected instance of OsmDataLayer or GpxLayer. Got ''{0}''.", layer.getClass().getName()));
    8383
  • trunk/src/org/openstreetmap/josm/actions/ImageryAdjustAction.java

    r8441 r8443  
    194194            super(Main.parent,
    195195                    tr("Adjust imagery offset"),
    196                     new String[] { tr("OK"),tr("Cancel") },
     196                    new String[] {tr("OK"),tr("Cancel")},
    197197                    false);
    198             setButtonIcons(new String[] { "ok", "cancel" });
     198            setButtonIcons(new String[] {"ok", "cancel"});
    199199            contentInsets = new Insets(10, 15, 5, 15);
    200200            JPanel pnl = new JPanel(new GridBagLayout());
     
    229229            String ostr = tOffset.getText();
    230230            int semicolon = ostr.indexOf(';');
    231             if( semicolon >= 0 && semicolon + 1 < ostr.length() ) {
     231            if (semicolon >= 0 && semicolon + 1 < ostr.length()) {
    232232                try {
    233233                    // here we assume that Double.parseDouble() needs '.' as a decimal separator
  • trunk/src/org/openstreetmap/josm/actions/JumpToAction.java

    r7812 r8443  
    109109        p.add(url, GBC.eol().fill(GBC.HORIZONTAL));
    110110
    111         Object[] buttons = { tr("Jump there"), tr("Cancel") };
     111        Object[] buttons = {tr("Jump there"), tr("Cancel")};
    112112        LatLon ll = null;
    113113        double zoomLvl = 100;
  • trunk/src/org/openstreetmap/josm/actions/MergeNodesAction.java

    r8378 r8443  
    198198            List<Node> newNodes = new ArrayList<>(w.getNodesCount());
    199199            for (Node n: w.getNodes()) {
    200                 if (! nodesToDelete.contains(n) && !n.equals(targetNode)) {
     200                if (!nodesToDelete.contains(n) && !n.equals(targetNode)) {
    201201                    newNodes.add(n);
    202202                } else if (newNodes.isEmpty()) {
  • trunk/src/org/openstreetmap/josm/actions/MoveNodeAction.java

    r7859 r8443  
    6767            return;
    6868        }
    69         if ((selection.size()) == 1 && (selection.toArray()[0] instanceof Node) ) {
     69        if ((selection.size()) == 1 && (selection.toArray()[0] instanceof Node)) {
    7070            setEnabled(true);
    7171        } else {
  • trunk/src/org/openstreetmap/josm/actions/OrthogonalizeAction.java

    r8378 r8443  
    101101            try {
    102102                for (OsmPrimitive p : sel) {
    103                     if (! (p instanceof Node)) throw new InvalidUserInputException();
     103                    if (!(p instanceof Node)) throw new InvalidUserInputException();
    104104                    Node n = (Node) p;
    105105                    if (rememberMovements.containsKey(n)) {
    106106                        EastNorth tmp = rememberMovements.get(n);
    107                         commands.add(new MoveCommand(n, - tmp.east(), - tmp.north()));
     107                        commands.add(new MoveCommand(n, -tmp.east(), -tmp.north()));
    108108                        rememberMovements.remove(n);
    109109                    }
     
    299299        // rotate
    300300        for (Node n: allNodes) {
    301             EastNorth tmp = EN.rotateCC(pivot, n.getEastNorth(), - headingAll);
     301            EastNorth tmp = EN.rotateCC(pivot, n.getEastNorth(), -headingAll);
    302302            nX.put(n, tmp.east());
    303303            nY.put(n, tmp.north());
     
    328328                            Node n2 = w.way.getNodes().get(i+1);
    329329                            if (Arrays.asList(orientation).contains(w.segDirections[i])) {
    330                                 if (cs.contains(n1) && ! cs.contains(n2)) {
     330                                if (cs.contains(n1) && !cs.contains(n2)) {
    331331                                    cs.add(n2);
    332332                                    somethingHappened = true;
    333333                                }
    334                                 if (cs.contains(n2) && ! cs.contains(n1)) {
     334                                if (cs.contains(n2) && !cs.contains(n1)) {
    335335                                    cs.add(n1);
    336336                                    somethingHappened = true;
     
    468468            }
    469469            // rotate the vertical vector by 90 degrees (clockwise) and add it to the horizontal vector
    470             segSum = EN.sum(h, new EastNorth(v.north(), - v.east()));
     470            segSum = EN.sum(h, new EastNorth(v.north(), -v.east()));
    471471            //            if (EN.abs(segSum) < lh) throw new AssertionError();
    472472            this.heading = EN.polar(new EastNorth(0.,0.), segSum);
     
    505505            a -= 2 * Math.PI;
    506506        }
    507         while (a <= - Math.PI) {
     507        while (a <= -Math.PI) {
    508508            a += 2 * Math.PI;
    509509        }
  • trunk/src/org/openstreetmap/josm/actions/PasteTagsAction.java

    r8388 r8443  
    109109         */
    110110        protected <T extends OsmPrimitive> boolean hasSourceTagsByType(OsmPrimitiveType type) {
    111             return ! getSourceTagsByType(type).isEmpty();
     111            return !getSourceTagsByType(type).isEmpty();
    112112        }
    113113
     
    196196                if (hasTargetPrimitives(type.getOsmClass())) {
    197197                    TagCollection tc = TagCollection.unionOfAllPrimitives(getSourcePrimitivesByType(type));
    198                     if (!tc.isEmpty() && ! tc.isApplicableToPrimitive())
     198                    if (!tc.isEmpty() && !tc.isApplicableToPrimitive())
    199199                        return false;
    200200                }
  • trunk/src/org/openstreetmap/josm/actions/PreferencesAction.java

    r7022 r8443  
    107107        if (tab != null) {
    108108            p.selectPreferencesTabByClass(tab);
    109         } else if( subTab != null) {
     109        } else if (subTab != null) {
    110110            p.selectSubPreferencesTabByClass(subTab);
    111111        }
  • trunk/src/org/openstreetmap/josm/actions/ReverseWayAction.java

    r7005 r8443  
    7474    @Override
    7575    public void actionPerformed(ActionEvent e) {
    76         if (! isEnabled())
     76        if (!isEnabled())
    7777            return;
    7878        if (getCurrentDataSet() == null)
  • trunk/src/org/openstreetmap/josm/actions/SaveAction.java

    r8061 r8443  
    3737    @Override public File getFile(Layer layer) {
    3838        File f = layer.getAssociatedFile();
    39         if(f != null && ! f.exists()) {
     39        if (f != null && !f.exists()) {
    4040            f=null;
    4141        }
  • trunk/src/org/openstreetmap/josm/actions/SimplifyWayAction.java

    r8338 r8443  
    139139    protected boolean isRequiredNode(Way way, Node node) {
    140140        boolean isRequired =  Collections.frequency(way.getNodes(), node) > 1;
    141         if (! isRequired) {
     141        if (!isRequired) {
    142142            List<OsmPrimitive> parents = new LinkedList<>();
    143143            parents.addAll(node.getReferrers());
  • trunk/src/org/openstreetmap/josm/actions/SplitWayAction.java

    r8276 r8443  
    126126        List<Way> selectedWays = OsmPrimitive.getFilteredList(selection, Way.class);
    127127        List<Relation> selectedRelations =
    128             OsmPrimitive.getFilteredList( selection, Relation.class);
     128            OsmPrimitive.getFilteredList(selection, Relation.class);
    129129        List<Way> applicableWays = getApplicableWays(selectedWays, selectedNodes);
    130130
  • trunk/src/org/openstreetmap/josm/actions/UpdateDataAction.java

    r7575 r8443  
    4545    @Override
    4646    public void actionPerformed(ActionEvent e) {
    47         if (! isEnabled())
     47        if (!isEnabled())
    4848            return;
    4949        if (getEditLayer() == null)
  • trunk/src/org/openstreetmap/josm/actions/UpdateSelectionAction.java

    r8291 r8443  
    126126    @Override
    127127    public void actionPerformed(ActionEvent e) {
    128         if (! isEnabled())
     128        if (!isEnabled())
    129129            return;
    130130        Collection<OsmPrimitive> toUpdate = getData();
  • trunk/src/org/openstreetmap/josm/actions/ZoomToAction.java

    r7937 r8443  
    2424
    2525    private final OsmPrimitivesTable table;
    26    
     26
    2727    private final String descriptionNominal;
    2828    private final String descriptionInactiveLayer;
    2929    private final String descriptionNoSelection;
    30    
     30
    3131    public ZoomToAction(OsmPrimitivesTable table, String descriptionNominal, String descriptionInactiveLayer, String descriptionNoSelection) {
    3232        CheckParameterUtil.ensureParameterNotNull(table);
     
    3939        updateEnabledState();
    4040    }
    41    
     41
    4242    public ZoomToAction(MemberTable table) {
    43         this(table, 
     43        this(table,
    4444                tr("Zoom to the object the first selected member refers to"),
    4545                tr("Zooming disabled because layer of this relation is not active"),
    4646                tr("Zooming disabled because there is no selected member"));
    4747    }
    48    
     48
    4949    public ZoomToAction(RelationMemberTable table) {
    50         this(table, 
     50        this(table,
    5151                tr("Zoom to the object the first selected member refers to"),
    5252                tr("Zooming disabled because layer of this relation is not active"),
    5353                tr("Zooming disabled because there is no selected member"));
    5454    }
    55    
     55
    5656    public ZoomToAction(NodeListTable table) {
    57         this(table, 
     57        this(table,
    5858                tr("Zoom to the first selected node"),
    5959                tr("Zooming disabled because layer of this way is not active"),
     
    6363    @Override
    6464    public void actionPerformed(ActionEvent e) {
    65         if (! isEnabled())
     65        if (!isEnabled())
    6666            return;
    6767        int[] rows = this.table.getSelectedRows();
  • trunk/src/org/openstreetmap/josm/command/ChangePropertyKeyCommand.java

    r8378 r8443  
    8282    @Override
    8383    public String getDescriptionText() {
    84         String text = tr( "Replace \"{0}\" by \"{1}\" for", key, newKey);
     84        String text = tr("Replace \"{0}\" by \"{1}\" for", key, newKey);
    8585        if (objects.size() == 1) {
    8686            NameVisitor v = new NameVisitor();
  • trunk/src/org/openstreetmap/josm/command/RotateCommand.java

    r8392 r8443  
    5050     **/
    5151    protected final double getAngle(EastNorth currentEN) {
    52         if ( pivot == null )
     52        if (pivot == null)
    5353            return 0.0; // should never happen by contract
    5454        return Math.atan2(currentEN.east()-pivot.east(), currentEN.north()-pivot.north());
  • trunk/src/org/openstreetmap/josm/command/TransformNodesCommand.java

    r8285 r8443  
    133133        EastNorth sum = new EastNorth(0,0);
    134134
    135         for (Node n : nodes ) {
     135        for (Node n : nodes) {
    136136            EastNorth en = n.getEastNorth();
    137137            sum = sum.add(en.east(), en.north());
  • trunk/src/org/openstreetmap/josm/corrector/ReverseWayTagCorrector.java

    r8404 r8443  
    233233        Collection<OsmPrimitive> referrers = oldway.getReferrers();
    234234        for (OsmPrimitive referrer: referrers) {
    235             if (! (referrer instanceof Relation)) {
     235            if (!(referrer instanceof Relation)) {
    236236                continue;
    237237            }
  • trunk/src/org/openstreetmap/josm/data/AutosaveTask.java

    r8357 r8443  
    5959public class AutosaveTask extends TimerTask implements LayerChangeListener, Listener {
    6060
    61     private static final char[] ILLEGAL_CHARACTERS = { '/', '\n', '\r', '\t', '\0', '\f', '`', '?', '*', '\\', '<', '>', '|', '\"', ':' };
     61    private static final char[] ILLEGAL_CHARACTERS = {'/', '\n', '\r', '\t', '\0', '\f', '`', '?', '*', '\\', '<', '>', '|', '\"', ':'};
    6262    private static final String AUTOSAVE_DIR = "autosave";
    6363    private static final String DELETED_LAYERS_DIR = "autosave/deleted_layers";
  • trunk/src/org/openstreetmap/josm/data/Bounds.java

    r8291 r8443  
    143143    }
    144144
    145     public Bounds(double [] coords) {
     145    public Bounds(double[] coords) {
    146146        this(coords, true);
    147147    }
    148148
    149     public Bounds(double [] coords, boolean roundToOsmPrecision) {
     149    public Bounds(double[] coords, boolean roundToOsmPrecision) {
    150150        CheckParameterUtil.ensureParameterNotNull(coords, "coords");
    151151        if (coords.length != 4)
  • trunk/src/org/openstreetmap/josm/data/CustomConfigurator.java

    r8419 r8443  
    412412        tmp.settingsMap.putAll(pref.settingsMap);
    413413        tmp.defaultsMap.putAll(pref.defaultsMap);
    414         tmp.colornames.putAll( pref.colornames );
     414        tmp.colornames.putAll(pref.colornames);
    415415
    416416        return tmp;
    417417    }
    418 
    419418
    420419    public static class XMLCommandProcessor {
  • trunk/src/org/openstreetmap/josm/data/Preferences.java

    r8395 r8443  
    879879            }
    880880        } else {
    881             if (! prefDir.mkdirs()) {
     881            if (!prefDir.mkdirs()) {
    882882                Main.warn(tr("Failed to initialize preferences. Failed to create missing preference directory: {0}", prefDir.getAbsoluteFile()));
    883883                JOptionPane.showMessageDialog(
  • trunk/src/org/openstreetmap/josm/gui/ConditionalOptionPaneUtil.java

    r8345 r8443  
    113113     * @return the option selected by user. {@link JOptionPane#CLOSED_OPTION} if the dialog was closed.
    114114     */
    115     public static int showOptionDialog(String preferenceKey, Component parent, Object message, String title, int optionType, int messageType, Object [] options, Object defaultOption) throws HeadlessException {
     115    public static int showOptionDialog(String preferenceKey, Component parent, Object message, String title, int optionType,
     116            int messageType, Object[] options, Object defaultOption) throws HeadlessException {
    116117        int ret = getDialogReturnValue(preferenceKey);
    117118        if (isYesOrNo(ret))
  • trunk/src/org/openstreetmap/josm/gui/DefaultNameFormatter.java

    r8395 r8443  
    618618        int nodesNo = way.isClosed() ? way.getNumNodes() -1 : way.getNumNodes();
    619619        String nodes = trn("{0} node", "{0} nodes", nodesNo, nodesNo);
    620         if(sb.length() == 0 ) {
     620        if (sb.length() == 0) {
    621621            sb.append(way.getId());
    622622        }
  • trunk/src/org/openstreetmap/josm/gui/FileDrop.java

    r8419 r8443  
    3434import org.openstreetmap.josm.Main;
    3535import org.openstreetmap.josm.actions.OpenFileAction;
    36 import org.openstreetmap.josm.gui.FileDrop.TransferableObject;
    3736
    3837/**
     
    8584
    8685    // Default border color
    87     private static Color defaultBorderColor = new Color( 0f, 0f, 1f, 0.25f );
     86    private static Color defaultBorderColor = new Color(0f, 0f, 1f, 0.25f);
    8887
    8988    /**
     
    9190     * @param c The drop target
    9291     */
    93     public FileDrop(final Component c){
     92    public FileDrop(final Component c) {
    9493        this(
    9594                c,     // Drop target
    96                 BorderFactory.createMatteBorder( 2, 2, 2, 2, defaultBorderColor ), // Drag border
     95                BorderFactory.createMatteBorder(2, 2, 2, 2, defaultBorderColor), // Drag border
    9796                true, // Recursive
    98                 new FileDrop.Listener(){
     97                new FileDrop.Listener() {
    9998                    @Override
    100                     public void filesDropped( File[] files ){
     99                    public void filesDropped(File[] files){
    101100                        // start asynchronous loading of files
    102101                        OpenFileAction.OpenFileTask task = new OpenFileAction.OpenFileTask(Arrays.asList(files), null);
     
    126125            final Listener listener) {
    127126
    128         if( supportsDnD() ) {
     127        if (supportsDnD()) {
    129128            // Make a drop listener
    130129            dropListener = new DropTargetListener() {
    131130                @Override
    132                 public void dragEnter( DropTargetDragEvent evt ) {
     131                public void dragEnter(DropTargetDragEvent evt) {
    133132                    Main.trace("FileDrop: dragEnter event." );
    134133
    135134                    // Is this an acceptable drag event?
    136                     if( isDragOk( evt ) ) {
     135                    if (isDragOk(evt) ) {
    137136                        // If it's a Swing component, set its border
    138                         if( c instanceof JComponent ) {
     137                        if (c instanceof JComponent) {
    139138                           JComponent jc = (JComponent) c;
    140139                            normalBorder = jc.getBorder();
    141                             Main.trace("FileDrop: normal border saved." );
    142                             jc.setBorder( dragBorder );
    143                             Main.trace("FileDrop: drag border set." );
     140                            Main.trace("FileDrop: normal border saved.");
     141                            jc.setBorder(dragBorder);
     142                            Main.trace("FileDrop: drag border set.");
    144143                        }
    145144
    146145                        // Acknowledge that it's okay to enter
    147                         evt.acceptDrag( DnDConstants.ACTION_COPY );
    148                         Main.trace("FileDrop: event accepted." );
     146                        evt.acceptDrag( DnDConstants.ACTION_COPY);
     147                        Main.trace("FileDrop: event accepted.");
    149148                    } else {
    150149                        // Reject the drag event
    151150                        evt.rejectDrag();
    152                         Main.trace("FileDrop: event rejected." );
     151                        Main.trace("FileDrop: event rejected.");
    153152                    }
    154153                }
    155154
    156155                @Override
    157                 public void dragOver( DropTargetDragEvent evt ) {
     156                public void dragOver(DropTargetDragEvent evt) {
    158157                    // This is called continually as long as the mouse is over the drag target.
    159158                }
    160159
    161160                @Override
    162                 public void drop( DropTargetDropEvent evt ) {
    163                    Main.trace("FileDrop: drop event." );
     161                public void drop(DropTargetDropEvent evt) {
     162                   Main.trace("FileDrop: drop event.");
    164163                    try {
    165164                        // Get whatever was dropped
     
    180179
    181180                            // Alert listener to drop.
    182                             if( listener != null ) {
     181                            if (listener != null) {
    183182                                listener.filesDropped(files);
    184183                            }
     
    214213                                }
    215214                            }
    216                             if(!handled){
    217                                 Main.trace("FileDrop: not a file list or reader - abort." );
     215                            if (!handled) {
     216                                Main.trace("FileDrop: not a file list or reader - abort.");
    218217                                evt.rejectDrop();
    219218                            }
     
    221220                        }
    222221                    } catch (IOException | UnsupportedFlavorException e) {
    223                         Main.warn("FileDrop: "+e.getClass().getSimpleName()+" - abort:" );
     222                        Main.warn("FileDrop: "+e.getClass().getSimpleName()+" - abort:");
    224223                        Main.error(e);
    225224                        try {
     
    231230                    } finally {
    232231                        // If it's a Swing component, reset its border
    233                         if( c instanceof JComponent ) {
     232                        if (c instanceof JComponent) {
    234233                           JComponent jc = (JComponent) c;
    235                             jc.setBorder( normalBorder );
    236                             Main.debug("FileDrop: normal border restored." );
     234                            jc.setBorder(normalBorder);
     235                            Main.debug("FileDrop: normal border restored.");
    237236                        }
    238237                    }
     
    240239
    241240                @Override
    242                 public void dragExit( DropTargetEvent evt ) {
    243                     Main.debug("FileDrop: dragExit event." );
     241                public void dragExit(DropTargetEvent evt) {
     242                    Main.debug("FileDrop: dragExit event.");
    244243                    // If it's a Swing component, reset its border
    245                     if( c instanceof JComponent ) {
    246                        JComponent jc = (JComponent) c;
    247                         jc.setBorder( normalBorder );
    248                         Main.debug("FileDrop: normal border restored." );
     244                    if (c instanceof JComponent) {
     245                        JComponent jc = (JComponent) c;
     246                        jc.setBorder(normalBorder);
     247                        Main.debug("FileDrop: normal border restored.");
    249248                    }
    250249                }
    251250
    252251                @Override
    253                 public void dropActionChanged( DropTargetDragEvent evt ) {
    254                     Main.debug("FileDrop: dropActionChanged event." );
     252                public void dropActionChanged(DropTargetDragEvent evt) {
     253                    Main.debug("FileDrop: dropActionChanged event.");
    255254                    // Is this an acceptable drag event?
    256                     if( isDragOk( evt ) ) {
    257                         evt.acceptDrag( DnDConstants.ACTION_COPY );
    258                         Main.debug("FileDrop: event accepted." );
     255                    if (isDragOk(evt) ) {
     256                        evt.acceptDrag( DnDConstants.ACTION_COPY);
     257                        Main.debug("FileDrop: event accepted.");
    259258                    } else {
    260259                        evt.rejectDrag();
    261                         Main.debug("FileDrop: event rejected." );
     260                        Main.debug("FileDrop: event rejected.");
    262261                    }
    263262                }
     
    265264
    266265            // Make the component (and possibly children) drop targets
    267             makeDropTarget( c, recursive );
     266            makeDropTarget(c, recursive);
    268267        } else {
    269             Main.info("FileDrop: Drag and drop is not supported with this JVM" );
     268            Main.info("FileDrop: Drag and drop is not supported with this JVM");
    270269        }
    271270    }
    272271
    273272    private static synchronized boolean supportsDnD() {
    274         if( supportsDnD == null ) {
     273        if (supportsDnD == null) {
    275274            boolean support = false;
    276275            try {
    277                 Class.forName( "java.awt.dnd.DnDConstants" );
     276                Class.forName("java.awt.dnd.DnDConstants");
    278277                support = true;
    279             } catch( Exception e ) {
     278            } catch(Exception e) {
    280279                support = false;
    281280            }
     
    313312    // END 2007-09-12 Nathan Blomquist -- Linux (KDE/Gnome) support added.
    314313
    315     private void makeDropTarget( final Component c, boolean recursive ) {
     314    private void makeDropTarget(final Component c, boolean recursive) {
    316315        // Make drop target
    317316        final DropTarget dt = new DropTarget();
    318317        try {
    319             dt.addDropTargetListener( dropListener );
    320         } catch( TooManyListenersException e ) {
     318            dt.addDropTargetListener(dropListener);
     319        } catch(TooManyListenersException e) {
    321320            Main.error(e);
    322             Main.warn("FileDrop: Drop will not work due to previous error. Do you have another listener attached?" );
     321            Main.warn("FileDrop: Drop will not work due to previous error. Do you have another listener attached?");
    323322        }
    324323
    325324        // Listen for hierarchy changes and remove the drop target when the parent gets cleared out.
    326         c.addHierarchyListener( new HierarchyListener() {
     325        c.addHierarchyListener(new HierarchyListener() {
    327326            @Override
    328             public void hierarchyChanged( HierarchyEvent evt ) {
    329                 Main.trace("FileDrop: Hierarchy changed." );
     327            public void hierarchyChanged(HierarchyEvent evt) {
     328                Main.trace("FileDrop: Hierarchy changed.");
    330329                Component parent = c.getParent();
    331                 if( parent == null ) {
    332                     c.setDropTarget( null );
    333                     Main.trace("FileDrop: Drop target cleared from component." );
     330                if (parent == null) {
     331                    c.setDropTarget(null);
     332                    Main.trace("FileDrop: Drop target cleared from component.");
    334333                } else {
    335334                    new DropTarget(c, dropListener);
    336                     Main.trace("FileDrop: Drop target added to component." );
     335                    Main.trace("FileDrop: Drop target added to component.");
    337336                }
    338337            }
    339338        });
    340         if( c.getParent() != null ) {
     339        if (c.getParent() != null) {
    341340            new DropTarget(c, dropListener);
    342341        }
    343342
    344         if( recursive && (c instanceof Container ) ) {
     343        if (recursive && (c instanceof Container)) {
    345344            // Get the container
    346345            Container cont = (Container) c;
     
    351350            // Set it's components as listeners also
    352351            for (Component comp : comps) {
    353                 makeDropTarget( comp, recursive);
     352                makeDropTarget(comp, recursive);
    354353            }
    355354        }
     
    357356
    358357    /** Determine if the dragged data is a file list. */
    359     private boolean isDragOk( final DropTargetDragEvent evt ) {
     358    private boolean isDragOk(final DropTargetDragEvent evt) {
    360359        boolean ok = false;
    361360
     
    365364        // See if any of the flavors are a file list
    366365        int i = 0;
    367         while( !ok && i < flavors.length ) {
     366        while(!ok && i < flavors.length) {
    368367            // BEGIN 2007-09-12 Nathan Blomquist -- Linux (KDE/Gnome) support added.
    369368            // Is the flavor a file list?
    370369            final DataFlavor curFlavor = flavors[i];
    371             if( curFlavor.equals( DataFlavor.javaFileListFlavor ) ||
     370            if (curFlavor.equals( DataFlavor.javaFileListFlavor ) ||
    372371                    curFlavor.isRepresentationClassReader()){
    373372                ok = true;
     
    378377
    379378        // show data flavors
    380         if( flavors.length == 0 ) {
    381             Main.trace("FileDrop: no data flavors." );
    382         }
    383         for( i = 0; i < flavors.length; i++ ) {
    384             Main.trace(flavors[i].toString() );
     379        if (flavors.length == 0) {
     380            Main.trace("FileDrop: no data flavors.");
     381        }
     382        for (i = 0; i < flavors.length; i++) {
     383            Main.trace(flavors[i].toString());
    385384        }
    386385
     
    398397     * @return {@code true} if at least one item has been removed, {@code false} otherwise
    399398     */
    400     public static boolean remove( Component c) {
    401         return remove( c, true );
     399    public static boolean remove(Component c) {
     400        return remove(c, true);
    402401    }
    403402
     
    411410     * @return {@code true} if at least one item has been removed, {@code false} otherwise
    412411     */
    413     public static boolean remove( Component c, boolean recursive ) {
     412    public static boolean remove(Component c, boolean recursive) {
    414413        // Make sure we support dnd.
    415414        if (supportsDnD()) {
     
    449448         * @param files An array of <tt>File</tt>s that were dropped.
    450449         */
    451         public abstract void filesDropped( File[] files );
     450        public abstract void filesDropped(File[] files);
    452451    }
    453452
     
    512511         */
    513512        public static final DataFlavor DATA_FLAVOR =
    514             new DataFlavor( FileDrop.TransferableObject.class, MIME_TYPE );
     513            new DataFlavor(FileDrop.TransferableObject.class, MIME_TYPE);
    515514
    516515        private Fetcher fetcher;
     
    528527         * @param data The data to transfer
    529528         */
    530         public TransferableObject( Object data ) {
     529        public TransferableObject(Object data) {
    531530            this.data = data;
    532             this.customFlavor = new DataFlavor( data.getClass(), MIME_TYPE );
     531            this.customFlavor = new DataFlavor(data.getClass(), MIME_TYPE);
    533532        }
    534533
     
    542541         * @param fetcher The {@link Fetcher} that will return the data object
    543542         */
    544         public TransferableObject( Fetcher fetcher ) {
     543        public TransferableObject(Fetcher fetcher) {
    545544            this.fetcher = fetcher;
    546545        }
     
    558557         * @see Fetcher
    559558         */
    560         public TransferableObject(Class<?> dataClass, Fetcher fetcher ) {
     559        public TransferableObject(Class<?> dataClass, Fetcher fetcher) {
    561560            this.fetcher = fetcher;
    562             this.customFlavor = new DataFlavor( dataClass, MIME_TYPE );
     561            this.customFlavor = new DataFlavor(dataClass, MIME_TYPE);
    563562        }
    564563
     
    587586        @Override
    588587        public DataFlavor[] getTransferDataFlavors() {
    589             if( customFlavor != null )
     588            if (customFlavor != null)
    590589                return new DataFlavor[] {
    591590                    customFlavor,
     
    609608         */
    610609        @Override
    611         public Object getTransferData( DataFlavor flavor )
     610        public Object getTransferData(DataFlavor flavor)
    612611        throws UnsupportedFlavorException, IOException {
    613612            // Native object
    614             if( flavor.equals( DATA_FLAVOR ) )
     613            if (flavor.equals(DATA_FLAVOR))
    615614                return fetcher == null ? data : fetcher.getObject();
    616615
    617616            // String
    618             if( flavor.equals( DataFlavor.stringFlavor ) )
     617            if (flavor.equals(DataFlavor.stringFlavor))
    619618                return fetcher == null ? data.toString() : fetcher.getObject().toString();
    620619
     
    631630         */
    632631        @Override
    633         public boolean isDataFlavorSupported( DataFlavor flavor ) {
     632        public boolean isDataFlavorSupported(DataFlavor flavor) {
    634633            // Native object
    635             if( flavor.equals( DATA_FLAVOR ) )
     634            if (flavor.equals(DATA_FLAVOR))
    636635                return true;
    637636
    638637            // String
    639             if( flavor.equals( DataFlavor.stringFlavor ) )
     638            if (flavor.equals( DataFlavor.stringFlavor))
    640639                return true;
    641640
  • trunk/src/org/openstreetmap/josm/gui/IconToggleButton.java

    r8308 r8443  
    112112                hiddenFlag = Boolean.parseBoolean(hiddenFlagStr);
    113113            }
    114             setVisible( !hiddenFlag ); // show or hide, do what preferences say
     114            setVisible(!hiddenFlag); // show or hide, do what preferences say
    115115        }
    116116    }
  • trunk/src/org/openstreetmap/josm/gui/ImageryMenu.java

    r8404 r8443  
    285285
    286286    private void addDynamic(Action a) {
    287         dynamicItems.add( this.add(a) );
     287        dynamicItems.add(this.add(a));
    288288    }
    289289
    290290    private void addDynamic(JMenuItem it) {
    291         dynamicItems.add( this.add(it) );
     291        dynamicItems.add(this.add(it));
    292292    }
    293293}
  • trunk/src/org/openstreetmap/josm/gui/MainApplication.java

    r8415 r8443  
    242242
    243243        int c;
    244         while ((c = g.getopt()) != -1 ) {
     244        while ((c = g.getopt()) != -1) {
    245245            Option opt = null;
    246246            switch (c) {
  • trunk/src/org/openstreetmap/josm/gui/NavigatableComponent.java

    r8419 r8443  
    938938                     */
    939939                    double perDistSq = Double.longBitsToDouble(
    940                             Double.doubleToLongBits( a - (a - b + c) * (a - b + c) / 4 / c )
     940                            Double.doubleToLongBits(a - (a - b + c) * (a - b + c) / 4 / c)
    941941                            >> 32 << 32); // resolution in numbers with large exponent not needed here..
    942942
     
    13191319            double r = (
    13201320                    (pt.getX()-a.getX())*(b.getX()-a.getX()) +
    1321                     (pt.getY()-a.getY())*(b.getY()-a.getY()) )
     1321                    (pt.getY()-a.getY())*(b.getY()-a.getY()))
    13221322                    / a.distanceSq(b);
    13231323            return project(r, a, b);
  • trunk/src/org/openstreetmap/josm/io/CachedFile.java

    r8401 r8443  
    364364                localFile = null;
    365365            } else {
    366                 if ( maxAge == DEFAULT_MAXTIME
     366                if (maxAge == DEFAULT_MAXTIME
    367367                        || maxAge <= 0 // arbitrary value <= 0 is deprecated
    368368                ) {
  • trunk/src/org/openstreetmap/josm/io/Capabilities.java

    r8390 r8443  
    7070     */
    7171    public boolean isDefined(String element, String attribute) {
    72         if (! capabilities.containsKey(element)) return false;
     72        if (!capabilities.containsKey(element)) return false;
    7373        Map<String, String> e = capabilities.get(element);
    7474        if (e == null) return false;
     
    8484     */
    8585    public String get(String element, String attribute) {
    86         if (! capabilities.containsKey(element)) return null;
     86        if (!capabilities.containsKey(element)) return null;
    8787        Map<String, String> e = capabilities.get(element);
    8888        if (e == null) return null;
     
    131131            }
    132132        } else {
    133             if (! capabilities.containsKey(element))  {
     133            if (!capabilities.containsKey(element))  {
    134134                Map<String,String> h = new HashMap<>();
    135135                capabilities.put(element, h);
  • trunk/src/org/openstreetmap/josm/io/ChangesetQuery.java

    r8415 r8443  
    193193     * @throws IllegalArgumentException if createdBefore is null
    194194     */
    195     public ChangesetQuery closedAfterAndCreatedBefore(Date closedAfter, Date createdBefore ) {
     195    public ChangesetQuery closedAfterAndCreatedBefore(Date closedAfter, Date createdBefore) {
    196196        CheckParameterUtil.ensureParameterNotNull(closedAfter, "closedAfter");
    197197        CheckParameterUtil.ensureParameterNotNull(createdBefore, "createdBefore");
  • trunk/src/org/openstreetmap/josm/io/GpxExporter.java

    r8426 r8443  
    135135        ExtendedDialog ed = new ExtendedDialog(Main.parent,
    136136                tr("Export options"),
    137                 new String[] { tr("Export and Save"), tr("Cancel") });
    138         ed.setButtonIcons(new String[] { "exportgpx", "cancel" });
     137                new String[] {tr("Export and Save"), tr("Cancel")});
     138        ed.setButtonIcons(new String[] {"exportgpx", "cancel"});
    139139        ed.setContent(p);
    140140        ed.showDialog();
  • trunk/src/org/openstreetmap/josm/io/OsmConnection.java

    r8291 r8443  
    119119        OAuthConsumer consumer = oauthParameters.buildConsumer();
    120120        OAuthAccessTokenHolder holder = OAuthAccessTokenHolder.getInstance();
    121         if (! holder.containsAccessToken())
     121        if (!holder.containsAccessToken())
    122122            throw new MissingOAuthAccessTokenException();
    123123        consumer.setTokenWithSecret(holder.getAccessTokenKey(), holder.getAccessTokenSecret());
  • trunk/src/org/openstreetmap/josm/io/OsmServerObjectReader.java

    r8390 r8443  
    120120              .append('/')
    121121              .append(id.getUniqueId());
    122             if (full && ! id.getType().equals(OsmPrimitiveType.NODE)) {
     122            if (full && !id.getType().equals(OsmPrimitiveType.NODE)) {
    123123                sb.append("/full");
    124124            } else if (version > 0) {
  • trunk/src/org/openstreetmap/josm/io/OsmServerUserInfoReader.java

    r8394 r8443  
    4242            UserInfo userInfo = new UserInfo();
    4343            Node xmlNode = (Node)xpath.compile("/osm/user[1]").evaluate(document, XPathConstants.NODE);
    44             if ( xmlNode== null)
     44            if (xmlNode == null)
    4545                throw new XmlParsingException(tr("XML tag <user> is missing."));
    4646
  • trunk/src/org/openstreetmap/josm/io/OsmWriter.java

    r8345 r8443  
    315315        }
    316316        if (this.changeset != null && this.changeset.getId() != 0) {
    317             out.print(" changeset='"+this.changeset.getId()+"'" );
     317            out.print(" changeset='"+this.changeset.getId()+"'");
    318318        } else if (osm.getChangesetId() > 0 && !osm.isNew()) {
    319             out.print(" changeset='"+osm.getChangesetId()+"'" );
     319            out.print(" changeset='"+osm.getChangesetId()+"'");
    320320        }
    321321    }
  • trunk/src/org/openstreetmap/josm/plugins/PluginDownloadTask.java

    r8394 r8443  
    111111            );
    112112            dialog.setContent(tr("JOSM version {0} required for plugin {1}.", pi.mainversion, pi.name));
    113             dialog.setButtonIcons(new String[] { "download", "cancel" });
     113            dialog.setButtonIcons(new String[] {"download", "cancel"});
    114114            dialog.showDialog();
    115115            int answer = dialog.getValue();
  • trunk/src/org/openstreetmap/josm/plugins/PluginHandler.java

    r8404 r8443  
    208208     * List of unmaintained plugins. Not really up-to-date as the vast majority of plugins are not maintained after a few months, sadly...
    209209     */
    210     private static final String [] UNMAINTAINED_PLUGINS = new String[] {"gpsbabelgui", "Intersect_way"};
     210    private static final String[] UNMAINTAINED_PLUGINS = new String[] {"gpsbabelgui", "Intersect_way"};
    211211
    212212    /**
     
    360360        if (message == null) return false;
    361361
    362         ButtonSpec [] options = new ButtonSpec[] {
     362        ButtonSpec[] options = new ButtonSpec[] {
    363363                new ButtonSpec(
    364364                        tr("Update plugins"),
     
    984984                // notify user if downloading a locally installed plugin failed
    985985                //
    986                 if (! pluginDownloadTask.getFailedPlugins().isEmpty()) {
     986                if (!pluginDownloadTask.getFailedPlugins().isEmpty()) {
    987987                    alertFailedPluginUpdate(parent, pluginDownloadTask.getFailedPlugins());
    988988                    return plugins;
     
    10101010     */
    10111011    public static boolean confirmDisablePlugin(Component parent, String reason, String name) {
    1012         ButtonSpec [] options = new ButtonSpec[] {
     1012        ButtonSpec[] options = new ButtonSpec[] {
    10131013                new ButtonSpec(
    10141014                        tr("Disable plugin"),
     
    10751075    public static void installDownloadedPlugins(boolean dowarn) {
    10761076        File pluginDir = Main.pref.getPluginsDirectory();
    1077         if (! pluginDir.exists() || ! pluginDir.isDirectory() || ! pluginDir.canWrite())
     1077        if (!pluginDir.exists() || !pluginDir.isDirectory() || !pluginDir.canWrite())
    10781078            return;
    10791079
     
    12761276        );
    12771277        final PluginInformation pluginInfo = plugin.getPluginInformation();
    1278         if (! plugins.contains(pluginInfo.name))
     1278        if (!plugins.contains(pluginInfo.name))
    12791279            // plugin not activated ? strange in this context but anyway, don't bother
    12801280            // the user with dialogs, skip conditional deactivation
  • trunk/src/org/openstreetmap/josm/plugins/ReadRemotePluginInformationTask.java

    r8390 r8443  
    317317        List<File> siteCacheFiles = new LinkedList<>();
    318318        for (String location : PluginInformation.getPluginLocations()) {
    319             File [] f = new File(location).listFiles(
     319            File[] f = new File(location).listFiles(
    320320                    new FilenameFilter() {
    321321                        @Override
  • trunk/src/org/openstreetmap/josm/tools/CheckParameterUtil.java

    r8291 r8443  
    111111    public static void ensureValidNodeId(PrimitiveId id, String parameterName) throws IllegalArgumentException {
    112112        ensureParameterNotNull(id, parameterName);
    113         if (! id.getType().equals(OsmPrimitiveType.NODE))
     113        if (!id.getType().equals(OsmPrimitiveType.NODE))
    114114            throw new IllegalArgumentException(MessageFormat.format("Parameter ''{0}'' of type node expected, got ''{1}''", parameterName, id.getType().getAPIName()));
    115115    }
  • trunk/src/org/openstreetmap/josm/tools/ColorScale.java

    r8419 r8443  
    3838        ColorScale sc = new ColorScale();
    3939        //                    red   yellow  green   blue    red
    40         int[] h = new int[] { 0,    59,     127,    244,    360};
    41         int[] s = new int[] { 100,  84,     99,     100 };
    42         int[] b = new int[] { 90,   93,     74,     83 };
     40        int[] h = new int[] {0,    59,     127,    244,    360};
     41        int[] s = new int[] {100,  84,     99,     100};
     42        int[] b = new int[] {90,   93,     74,     83};
    4343
    4444        sc.colors = new Color[count];
  • trunk/src/org/openstreetmap/josm/tools/Diff.java

    r8419 r8443  
    9797    public Diff(Object[] a, Object[] b) {
    9898        Map<Object,Integer> h = new HashMap<>(a.length + b.length);
    99         filevec = new FileData[] { new FileData(a,h),new FileData(b,h) };
     99        filevec = new FileData[] {new FileData(a,h), new FileData(b,h)};
    100100    }
    101101
  • trunk/src/org/openstreetmap/josm/tools/Geometry.java

    r8419 r8443  
    298298        if (Math.abs(det) > 1e-12 * mag) {
    299299            double u = uu/det, v = vv/det;
    300             if (u>-1e-8 && u < 1+1e-8 && v>-1e-8 && v < 1+1e-8 ) {
     300            if (u>-1e-8 && u < 1+1e-8 && v>-1e-8 && v < 1+1e-8) {
    301301                if (u<0) u=0;
    302302                if (u>1) u=1.0;
     
    355355            return null; // Lines are parallel
    356356
    357         return new EastNorth(b1 * c2 / det + p1.getX(),  - a1 * c2 / det + p1.getY());
     357        return new EastNorth(b1 * c2 / det + p1.getX(), -a1 * c2 / det + p1.getY());
    358358    }
    359359
  • trunk/src/org/openstreetmap/josm/tools/ImageProvider.java

    r8419 r8443  
    721721            String[] extensions;
    722722            if (name.indexOf('.') != -1) {
    723                 extensions = new String[] { "" };
     723                extensions = new String[] {""};
    724724            } else {
    725                 extensions = new String[] { ".png", ".svg"};
     725                extensions = new String[] {".png", ".svg"};
    726726            }
    727727            final int ARCHIVE = 0, LOCAL = 1;
    728             for (int place : new Integer[] { ARCHIVE, LOCAL }) {
     728            for (int place : new Integer[] {ARCHIVE, LOCAL}) {
    729729                for (String ext : extensions) {
    730730
  • trunk/src/org/openstreetmap/josm/tools/Shortcut.java

    r8419 r8443  
    415415                // Try to reassign Meta to Ctrl
    416416                int newmodifier = findNewOsxModifier(requestedGroup);
    417                 if ( findShortcut(requestedKey, newmodifier) == null ) {
     417                if (findShortcut(requestedKey, newmodifier) == null) {
    418418                    return reassignShortcut(shortText, longText, requestedKey, conflict, requestedGroup, requestedKey, newmodifier);
    419419                }
     
    422422                for (int k : keys) {
    423423                    int newmodifier = getGroupModifier(m);
    424                     if ( findShortcut(k, newmodifier) == null ) {
     424                    if (findShortcut(k, newmodifier) == null) {
    425425                        return reassignShortcut(shortText, longText, requestedKey, conflict, m, k, newmodifier);
    426426                    }
  • trunk/src/org/openstreetmap/josm/tools/TextTagParser.java

    r8375 r8443  
    132132            while (pos < n) {
    133133                c = data.charAt(pos);
    134                 if (c == '\t' || c == '\n' || c == '\r' || c == ' ' ) {
     134                if (c == '\t' || c == '\n' || c == '\r' || c == ' ') {
    135135                    pos++;
    136136                } else {
     
    142142
    143143    protected static String unescape(String k) {
    144         if(! (k.startsWith("\"") && k.endsWith("\"")) ) {
     144        if (!(k.startsWith("\"") && k.endsWith("\""))) {
    145145            if (k.contains("=")) {
    146146                // '=' not in quotes will be treated as an error!
     
    220220        String bufJson = buf.trim();
    221221        // trim { }, if there are any
    222         if (bufJson.startsWith("{") && bufJson.endsWith("}") ) bufJson = bufJson.substring(1,bufJson.length()-1);
     222        if (bufJson.startsWith("{") && bufJson.endsWith("}"))
     223            bufJson = bufJson.substring(1, bufJson.length()-1);
    223224        tags = readTagsByRegexp(bufJson, "[\\s]*,[\\s]*",
    224225                "[\\s]*(\\\".*?[^\\\\]\\\")"+"[\\s]*:[\\s]*"+"(\\\".*?[^\\\\]\\\")[\\s]*", true);
  • trunk/src/org/openstreetmap/josm/tools/Utils.java

    r8435 r8443  
    421421     */
    422422    public static boolean deleteDirectory(File path) {
    423         if( path.exists() ) {
     423        if (path.exists()) {
    424424            File[] files = path.listFiles();
    425425            if (files != null) {
  • trunk/src/org/openstreetmap/josm/tools/WindowGeometry.java

    r8394 r8443  
    6868    public static WindowGeometry centerInWindow(Component reference, Dimension extent) {
    6969        Window parentWindow = null;
    70         while(reference != null && ! (reference instanceof Window) ) {
     70        while (reference != null && !(reference instanceof Window)) {
    7171            reference = reference.getParent();
    7272        }
Note: See TracChangeset for help on using the changeset viewer.