Changeset 8585 in josm


Ignore:
Timestamp:
2015-07-08T21:13:07+02:00 (9 years ago)
Author:
wiktorn
Message:

Checkstyle fixes

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/imagery/WMTSTileSource.java

    r8584 r8585  
    280280                String[] topLeftCorner = getStringByXpath(tileMatrixNode, "TopLeftCorner").split(" ");
    281281
    282                 if(matrixProj.switchXY()) {
     282                if (matrixProj.switchXY()) {
    283283                    tileMatrix.topLeftCorner = new EastNorth(Double.parseDouble(topLeftCorner[1]), Double.parseDouble(topLeftCorner[0]));
    284284                } else {
  • trunk/test/unit/org/openstreetmap/josm/data/imagery/WMTSTileSourceTest.java

    r8584 r8585  
    9292    }
    9393
    94 
    95 
    9694    @Test
    9795    public void testWIEN() throws MalformedURLException, IOException {
     
    114112        assertTrue("X index is negative: " + xy.getXIndex(), xy.getXIndex() > 0);
    115113        assertTrue(xy.getYIndex() > 0);
    116         for(int x = 0; x < 4; x++) {
    117             for(int y = 0; y < 4; y++) {
     114        for (int x = 0; x < 4; x++) {
     115            for (int y = 0; y < 4; y++) {
    118116                verifyMercatorTile(testSource, x, y, 3, zoomOffset);
    119117            }
    120118        }
    121         for(int x = 0; x < 8; x++) {
    122             for(int y = 0; y < 4; y++) {
     119        for (int x = 0; x < 8; x++) {
     120            for (int y = 0; y < 4; y++) {
    123121                verifyMercatorTile(testSource, x, y, zoomOffset);
    124122            }
    125123        }
    126124
    127         verifyMercatorTile(testSource, 2<<9 - 1, 2<<8 - 1, zoomOffset);
     125        verifyMercatorTile(testSource, 2 << 9 - 1, 2 << 8 - 1, zoomOffset);
    128126
    129127        assertEquals("TileXMax", 1, testSource.getTileXMax(1));
Note: See TracChangeset for help on using the changeset viewer.