Ignore:
Timestamp:
2015-06-20T23:42:21+02:00 (9 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/ImageryMenu.java

    r8465 r8510  
    6565            Main.toolbar.register(this);
    6666        }
     67
    6768        @Override
    6869        public void actionPerformed(ActionEvent e) {
     
    7475            Component source = null;
    7576            if (e.getSource() instanceof Component) {
    76                 source = (Component)e.getSource();
     77                source = (Component) e.getSource();
    7778            }
    7879            JPopupMenu popup = new JPopupMenu();
     
    196197            // add all items of submenu if they will fit on screen
    197198            int n = subMenu.getItemCount();
    198             for (int i=0; i<n; i++) {
     199            for (int i = 0; i < n; i++) {
    199200                addDynamic(subMenu.getItem(i).getAction());
    200201            }
     
    205206    }
    206207
    207     private JMenuItem getNewOffsetMenu(){
     208    private JMenuItem getNewOffsetMenu() {
    208209        if (!Main.isDisplayingMapView()) {
    209210            offsetAction.setEnabled(false);
     
    216217        }
    217218        offsetAction.setEnabled(true);
    218         JMenu newMenu = new JMenu(trc("layer","Offset"));
     219        JMenu newMenu = new JMenu(trc("layer", "Offset"));
    219220        newMenu.setIcon(ImageProvider.get("mapmode", "adjustimg"));
    220221        newMenu.setAction(offsetAction);
    221222        if (layers.size() == 1)
    222             return (JMenuItem)layers.iterator().next().getOffsetMenuItem(newMenu);
     223            return (JMenuItem) layers.iterator().next().getOffsetMenuItem(newMenu);
    223224        for (ImageryLayer layer : layers) {
    224225            JMenuItem layerMenu = layer.getOffsetMenuItem();
     
    266267        for (Object item : dynamicItems) {
    267268            if (item instanceof JMenuItem) {
    268                 remove((JMenuItem)item);
     269                remove((JMenuItem) item);
    269270            }
    270271            if (item instanceof MenuComponent) {
    271                 remove((MenuComponent)item);
     272                remove((MenuComponent) item);
    272273            }
    273274            if (item instanceof Component) {
    274                 remove((Component)item);
     275                remove((Component) item);
    275276            }
    276277        }
Note: See TracChangeset for help on using the changeset viewer.