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/dialogs/LayerListPopup.java

    r8419 r8510  
    8080                    separatorAdded = true;
    8181                    actions.add(a);
    82                 } else if (a instanceof LayerAction && ((LayerAction)a).supportLayers(selectedLayers)) {
     82                } else if (a instanceof LayerAction && ((LayerAction) a).supportLayers(selectedLayers)) {
    8383                    separatorAdded = false;
    84                     if(a instanceof MultiLayerAction)
    85                         a = ((MultiLayerAction)a).getMultiLayerAction(selectedLayers);
     84                    if (a instanceof MultiLayerAction)
     85                        a = ((MultiLayerAction) a).getMultiLayerAction(selectedLayers);
    8686                    actions.add(a);
    8787                }
    8888            }
    8989            // This will usually add no action, because if some action support all selected layers then it was probably used also in first layer
    90             for (int i=1; i<selectedLayers.size(); i++) {
     90            for (int i = 1; i < selectedLayers.size(); i++) {
    9191                separatorAdded = false;
    9292                for (Action a: selectedLayers.get(i).getMenuEntries()) {
    9393                    if (a instanceof LayerAction && !(a instanceof MultiLayerAction)
    94                     && ((LayerAction)a).supportLayers(selectedLayers) && !actions.contains(a)) {
     94                    && ((LayerAction) a).supportLayers(selectedLayers) && !actions.contains(a)) {
    9595                        if (!separatorAdded) {
    9696                            separatorAdded = true;
Note: See TracChangeset for help on using the changeset viewer.