Changeset 12402 in josm


Ignore:
Timestamp:
2017-06-12T00:14:29+02:00 (2 months ago)
Author:
Don-vip
Message:

checkstyle

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

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/validation/tests/ConditionalKeys.java

    r12390 r12402  
    7070
    7171    /**
    72      * Checks if the key denotes a <a href="http://wiki.openstreetmap.org/wiki/Key:access#Transport_mode_restrictions">transport access mode restriction</a>
     72     * Checks if the key denotes a
     73     * <a href="http://wiki.openstreetmap.org/wiki/Key:access#Transport_mode_restrictions">transport access mode restriction</a>
    7374     * @param part The key (or the restriction part of it, e.g. for lanes)
    7475     * @return <code>true</code> if it is a restriction
  • trunk/src/org/openstreetmap/josm/gui/dialogs/layer/LayerVisibilityAction.java

    r12396 r12402  
    544544        private final HashMap<Color, JPanel> panels = new HashMap<>();
    545545
    546         public ColorSelector() {
     546        ColorSelector() {
    547547            super(new GridBagLayout());
    548548            add(new JLabel(tr("Color")), GBC.eol().insets(24 + 10, 0, 0, 0));
     
    564564                public void mouseClicked(MouseEvent e) {
    565565                    List<Layer> layers = model.getSelectedLayers();
    566                     for(Layer l : layers) {
     566                    for (Layer l : layers) {
    567567                        if (l instanceof GpxLayer) {
    568568                            l.getColorProperty().put(color);
     
    579579        public void updateLayers(List<Layer> layers, boolean allVisible, boolean allHidden) {
    580580            List<Color> colors = layers.stream().filter(l -> l instanceof GpxLayer)
    581                     .map(l -> ((GpxLayer)l).getColorProperty().get())
     581                    .map(l -> ((GpxLayer) l).getColorProperty().get())
    582582                    .distinct()
    583583                    .collect(Collectors.toList());
Note: See TracChangeset for help on using the changeset viewer.