Ignore:
Timestamp:
2017-04-15T01:38:46+02:00 (9 years ago)
Author:
Don-vip
Message:

sonar - squid:S1192 - String literals should not be duplicated

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/upload/FixDataHook.java

    r10601 r11913  
    2727public class FixDataHook implements UploadHook {
    2828
     29    private static final String ONEWAY = "oneway";
     30
    2931    /**
    3032     * List of checks to run on data
     
    4042        deprecated.add(new FixDataKey("color",            "colour"));
    4143        deprecated.add(new FixDataTag("highway", "ford",  "ford",    "yes"));
    42         deprecated.add(new FixDataTag("oneway",  "false", "oneway",  "no"));
    43         deprecated.add(new FixDataTag("oneway",  "0",     "oneway",  "no"));
    44         deprecated.add(new FixDataTag("oneway",  "true",  "oneway",  "yes"));
    45         deprecated.add(new FixDataTag("oneway",  "1",     "oneway",  "yes"));
     44        deprecated.add(new FixDataTag(ONEWAY,    "false",  ONEWAY,   "no"));
     45        deprecated.add(new FixDataTag(ONEWAY,    "0",      ONEWAY,   "no"));
     46        deprecated.add(new FixDataTag(ONEWAY,    "true",   ONEWAY,   "yes"));
     47        deprecated.add(new FixDataTag(ONEWAY,    "1",      ONEWAY,   "yes"));
    4648        deprecated.add(new FixDataTag("highway", "stile", "barrier", "stile"));
    4749        // CHECKSTYLE.ON: SingleSpaceSeparator
Note: See TracChangeset for help on using the changeset viewer.