Changeset 8864 in josm


Ignore:
Timestamp:
2015-10-12T23:27:10+02:00 (9 years ago)
Author:
Don-vip
Message:

checkstyle

Location:
trunk/src/org/openstreetmap/josm/gui
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/dialogs/properties/PresetListPanel.java

    r8863 r8864  
    22package org.openstreetmap.josm.gui.dialogs.properties;
    33
    4 import org.openstreetmap.josm.data.osm.OsmPrimitive;
    5 import org.openstreetmap.josm.gui.tagging.presets.TaggingPresetHandler;
    6 import org.openstreetmap.josm.gui.tagging.presets.TaggingPresetLabel;
    7 import org.openstreetmap.josm.gui.tagging.presets.TaggingPreset;
    8 import org.openstreetmap.josm.gui.tagging.presets.TaggingPresetType;
    9 import org.openstreetmap.josm.tools.GBC;
    10 
    11 import javax.swing.JLabel;
    12 import javax.swing.JPanel;
    134import java.awt.Dimension;
    145import java.awt.GridBagLayout;
     
    178import java.util.Collection;
    189import java.util.Map;
     10
     11import javax.swing.JLabel;
     12import javax.swing.JPanel;
     13
     14import org.openstreetmap.josm.data.osm.OsmPrimitive;
     15import org.openstreetmap.josm.gui.tagging.presets.TaggingPreset;
     16import org.openstreetmap.josm.gui.tagging.presets.TaggingPresetHandler;
     17import org.openstreetmap.josm.gui.tagging.presets.TaggingPresetLabel;
     18import org.openstreetmap.josm.gui.tagging.presets.TaggingPresetType;
     19import org.openstreetmap.josm.tools.GBC;
    1920
    2021/**
     
    3435     * and associates an interaction with (matching) presets via {@code presetHandler}.
    3536     */
    36     public void updatePresets(final Collection<TaggingPresetType> types, final Map<String, String> tags, final TaggingPresetHandler presetHandler) {
     37    public void updatePresets(final Collection<TaggingPresetType> types, final Map<String, String> tags,
     38            final TaggingPresetHandler presetHandler) {
    3739
    3840        removeAll();
  • trunk/src/org/openstreetmap/josm/gui/layer/AbstractTileSourceLayer.java

    r8862 r8864  
    672672        }
    673673        // as we can see part of the tile at the top and at the bottom, use Math.ceil(...) + 1 to accommodate for that
    674         int visibileTiles = (int) (Math.ceil( (double)height / tileSize + 1) * Math.ceil((double)width / tileSize + 1));
     674        int visibileTiles = (int) (Math.ceil((double) height / tileSize + 1) * Math.ceil((double) width / tileSize + 1));
    675675        // add 10% for tiles from different zoom levels
    676         return (int)Math.ceil(
     676        return (int) Math.ceil(
    677677                Math.pow(2d, ZOOM_OFFSET.get()) * visibileTiles // use offset to decide, how many tiles are visible
    678678                * 2);
  • trunk/src/org/openstreetmap/josm/gui/layer/Layer.java

    r8860 r8864  
    155155            }
    156156            if (memoryBytesRequired >  Runtime.getRuntime().maxMemory()) {
    157                 throw new IllegalArgumentException(tr("To add another layer you need to allocate at least {0,number,#}MB memory to JOSM using -Xmx{0,number,#}M "
     157                throw new IllegalArgumentException(
     158                        tr("To add another layer you need to allocate at least {0,number,#}MB memory to JOSM using -Xmx{0,number,#}M "
    158159                        + "option (see http://forum.openstreetmap.org/viewtopic.php?id=25677).\n"
    159                         + "Currently you have {1,number,#}MB memory allocated for JOSM", memoryBytesRequired / 1024 / 1024, Runtime.getRuntime().maxMemory() / 1024 / 1024));
     160                        + "Currently you have {1,number,#}MB memory allocated for JOSM",
     161                        memoryBytesRequired / 1024 / 1024, Runtime.getRuntime().maxMemory() / 1024 / 1024));
    160162            }
    161163        }
Note: See TracChangeset for help on using the changeset viewer.