Changeset 16916 in josm


Ignore:
Timestamp:
2020-08-23T17:23:30+02:00 (3 months ago)
Author:
simon04
Message:

see #19698 - Java Warnings, PMD

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/preferences/projection/GaussKruegerProjectionChoice.java

    r16913 r16916  
    1616public class GaussKruegerProjectionChoice extends ListProjectionChoice {
    1717
    18     private static final String[] zones = {"2", "3", "4", "5"};
     18    private static final String[] ZONES = {"2", "3", "4", "5"};
    1919
    2020    /**
     
    2222     */
    2323    public GaussKruegerProjectionChoice() {
    24         super(tr("Gau\u00DF-Kr\u00FCger"), /* NO-ICON */ "core:gauss-krueger", zones, tr("GK Zone"));
     24        super(tr("Gau\u00DF-Kr\u00FCger"), /* NO-ICON */ "core:gauss-krueger", ZONES, tr("GK Zone"));
    2525    }
    2626
  • trunk/src/org/openstreetmap/josm/gui/preferences/projection/LambertCC9ZonesProjectionChoice.java

    r16913 r16916  
    2323public class LambertCC9ZonesProjectionChoice extends ListProjectionChoice {
    2424
    25     private static final String[] lambert9zones = {
     25    private static final String[] LAMBERT_9_ZONES = {
    2626        tr("{0} ({1} to {2} degrees)", 1, 41, 43),
    2727        tr("{0} ({1} to {2} degrees)", 2, 42, 44),
     
    3939     */
    4040    public LambertCC9ZonesProjectionChoice() {
    41         super(tr("Lambert CC9 Zone (France)"), /* NO-ICON */ "core:lambertcc9", lambert9zones, tr("Lambert CC Zone"));
     41        super(tr("Lambert CC9 Zone (France)"), /* NO-ICON */ "core:lambertcc9", LAMBERT_9_ZONES, tr("Lambert CC Zone"));
    4242    }
    4343
  • trunk/src/org/openstreetmap/josm/tools/bugreport/BugReportQueue.java

    r16913 r16916  
    9191    private class BugReportDisplayRunnable implements Runnable {
    9292
    93         private final boolean running = true;
     93        private volatile boolean running = true;
    9494
    9595        @Override
  • trunk/test/unit/org/openstreetmap/josm/data/imagery/WMTSTileSourceTest.java

    r16913 r16916  
    6464    private final ImageryInfo testLotsOfLayers = getImagery(TestUtils.getTestDataRoot() + "wmts/getCapabilities-lots-of-layers.xml");
    6565    private final ImageryInfo testDuplicateTags = getImagery(TestUtils.getTestDataRoot() + "wmts/bug12573-wmts-identifier.xml");
    66     private final ImageryInfo testMissingStyleIdentifer = getImagery(TestUtils.getTestDataRoot() + "wmts/bug12573-wmts-missing-style-identifier.xml");
     66    private final ImageryInfo testMissingStyleIdentifier = getImagery(TestUtils.getTestDataRoot() +
     67            "wmts/bug12573-wmts-missing-style-identifier.xml");
    6768    private final ImageryInfo testMultipleTileMatrixForLayer = getImagery(TestUtils.getTestDataRoot() +
    6869            "wmts/bug13975-multiple-tile-matrices-for-one-layer-projection.xml");
     
    306307    public void testParserForMissingStyleIdentifier() throws Exception {
    307308        ProjectionRegistry.setProjection(Projections.getProjectionByCode("EPSG:3857"));
    308         WMTSTileSource testSource = new WMTSTileSource(testMissingStyleIdentifer);
     309        WMTSTileSource testSource = new WMTSTileSource(testMissingStyleIdentifier);
    309310        testSource.initProjection(ProjectionRegistry.getProjection());
    310311    }
Note: See TracChangeset for help on using the changeset viewer.