Changeset 14637 in josm


Ignore:
Timestamp:
2019-01-04T22:24:53+01:00 (5 years ago)
Author:
simon04
Message:

Run Checkstyle on scripts/ and apply fixes

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/build.xml

    r14636 r14637  
    922922                excludes="gui/mappaint/mapcss/parsergen/*.java"/>
    923923            <fileset dir="${base.dir}/test" includes="**/*.java"/>
     924            <fileset dir="${base.dir}/scripts" includes="**/*.java"/>
    924925            <formatter type="plain"/>
    925926            <formatter type="xml" toFile="checkstyle-josm.xml"/>
  • trunk/scripts/BuildProjectionDefinitions.java

    r14201 r14637  
    2828 * proj.4 project and a list maintained by the JOSM team.
    2929 */
    30 public class BuildProjectionDefinitions {
     30public final class BuildProjectionDefinitions {
    3131
    3232    private static final String PROJ_DIR = "data_nodist/projection";
     
    6565    private static List<String> knownNadgrids;
    6666
     67    private BuildProjectionDefinitions() {
     68    }
     69
    6770    /**
    6871     * Program entry point
     
    164167            }
    165168            if (noOmercNoBounds > 0) {
    166                 System.out.println(String.format(" * projection is Oblique Mercator (requires bounds), but no bounds specified: %d entries", noOmercNoBounds));
     169                System.out.println(String.format(
     170                        " * projection is Oblique Mercator (requires bounds), but no bounds specified: %d entries", noOmercNoBounds));
    167171            }
    168172            if (noEquatorStereo > 0) {
     
    209213
    210214        // exclude projections failing
     215        // CHECKSTYLE.OFF: LineLength
    211216        if (Arrays.asList(
    212217                // Unsuitable parameters 'lat_1' and 'lat_2' for two point method
     
    235240            result = false;
    236241        }
     242        // CHECKSTYLE.ON: LineLength
    237243
    238244        Map<String, String> parameters;
  • trunk/scripts/I18nSimilarStrings.java

    r14373 r14637  
     1// License: GPL. For details, see LICENSE file.
     2
    13import java.util.ArrayList;
    24import java.util.Collections;
     
    1820 */
    1921public final class I18nSimilarStrings {
     22
     23    private I18nSimilarStrings() {
     24    }
    2025
    2126    /**
Note: See TracChangeset for help on using the changeset viewer.