Changeset 32390 in osm for applications/viewer/jmapviewer


Ignore:
Timestamp:
2016-06-24T01:31:44+02:00 (8 years ago)
Author:
donvip
Message:

checkstyle: enable SingleSpaceSeparator

Location:
applications/viewer/jmapviewer
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/Demo.java

    r32008 r32390  
    3535 *
    3636 */
    37 public class Demo extends JFrame implements JMapViewerEventListener  {
     37public class Demo extends JFrame implements JMapViewerEventListener {
    3838
    3939    private static final long serialVersionUID = 1L;
  • applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/tilesources/TemplatedTMSTileSource.java

    r31790 r32390  
    2929 * {header:(HEADER_NAME,HEADER_VALUE)} - sets the headers to be sent to tile server
    3030 */
    31 
    3231public class TemplatedTMSTileSource extends TMSTileSource implements TemplatedTileSource {
    3332
     
    3635    private final Map<String, String> headers = new HashMap<>();
    3736
     37    // CHECKSTYLE.OFF: SingleSpaceSeparator
    3838    private static final String COOKIE_HEADER   = "Cookie";
    3939    private static final String PATTERN_ZOOM    = "\\{(?:(\\d+)-)?z(?:oom)?([+-]\\d+)?\\}";
     
    4444    private static final String PATTERN_SWITCH  = "\\{switch:([^}]+)\\}";
    4545    private static final String PATTERN_HEADER  = "\\{header\\(([^,]+),([^}]+)\\)\\}";
     46    // CHECKSTYLE.ON: SingleSpaceSeparator
    4647
    4748    private static final String[] ALL_PATTERNS = {
    48         PATTERN_HEADER, PATTERN_ZOOM, PATTERN_X, PATTERN_Y, PATTERN_Y_YAHOO, PATTERN_NEG_Y,
    49         PATTERN_SWITCH
     49        PATTERN_HEADER, PATTERN_ZOOM, PATTERN_X, PATTERN_Y, PATTERN_Y_YAHOO, PATTERN_NEG_Y, PATTERN_SWITCH
    5050    };
    5151
  • applications/viewer/jmapviewer/tools/checkstyle/jmapviewer_checks.xml

    r31429 r32390  
    5656    <module name="NoWhitespaceAfter"/>
    5757    <module name="NoWhitespaceBefore"/>
     58    <module name="SingleSpaceSeparator"/>
    5859    <module name="MethodParamPad"/>
    5960    <module name="ParenPad"/>
Note: See TracChangeset for help on using the changeset viewer.