Changeset 11324 in josm for trunk/scripts


Ignore:
Timestamp:
2016-11-27T05:16:30+01:00 (7 years ago)
Author:
Don-vip
Message:

findbugs

Location:
trunk/scripts
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/scripts/BuildProjectionDefinitions.java

    r9667 r11324  
    6363        }
    6464
    65         try (BufferedWriter out = new BufferedWriter(new OutputStreamWriter(
    66                 new FileOutputStream(baseDir + File.separator + OUTPUT_EPSG_FILE), StandardCharsets.UTF_8))) {
     65        try (FileOutputStream output = new FileOutputStream(baseDir + File.separator + OUTPUT_EPSG_FILE);
     66             BufferedWriter out = new BufferedWriter(new OutputStreamWriter(output, StandardCharsets.UTF_8))) {
    6767            out.write("## This file is autogenerated, do not edit!\n");
    6868            out.write("## Run ant task \"epsg\" to rebuild.\n");
    69             out.write(String.format("## Source files are %s (can be changed) and %s (copied from the proj.4 project).%n", JOSM_EPSG_FILE, PROJ4_EPSG_FILE));
     69            out.write(String.format("## Source files are %s (can be changed) and %s (copied from the proj.4 project).%n",
     70                    JOSM_EPSG_FILE, PROJ4_EPSG_FILE));
    7071            out.write("##\n");
    7172            out.write("## Entries checked and maintained by the JOSM team:\n");
  • trunk/scripts/TagInfoExtract.groovy

    r11252 r11324  
    99 * groovy -cp dist/josm-custom.jar scripts/taginfoextract.groovy -t external_presets
    1010 */
    11 import groovy.json.JsonBuilder
    12 
    1311import java.awt.image.BufferedImage
    1412import java.nio.file.FileSystems
     
    4947import org.openstreetmap.josm.tools.Utils
    5048
     49import edu.umd.cs.findbugs.annotations.SuppressFBWarnings
     50import groovy.json.JsonBuilder
     51
    5152class TagInfoExtract {
    5253
     
    118119    }
    119120
     121    @SuppressFBWarnings(value = "MF_CLASS_MASKS_FIELD")
    120122    class NodeChecker extends Checker {
    121123        NodeChecker(tag) {
     
    137139    }
    138140
     141    @SuppressFBWarnings(value = "MF_CLASS_MASKS_FIELD")
    139142    class WayChecker extends Checker {
    140143        WayChecker(tag) {
     
    159162    }
    160163
     164    @SuppressFBWarnings(value = "MF_CLASS_MASKS_FIELD")
    161165    class AreaChecker extends Checker {
    162166        AreaChecker(tag) {
Note: See TracChangeset for help on using the changeset viewer.