Ticket #13535: fixFindBugs.patch
File fixFindBugs.patch, 1.2 KB (added by , 8 years ago) |
---|
-
src/org/openstreetmap/josm/gui/layer/AbstractTileSourceLayer.java
1431 1431 List<Tile> allTiles = ts.allExistingTiles(); 1432 1432 TileSetInfo result = new TileSetInfo(); 1433 1433 result.hasLoadingTiles = allTiles.size() < ts.size(); 1434 result.hasAllLoadedTiles = true; 1434 1435 for (Tile t : allTiles) { 1435 1436 if ("no-tile".equals(t.getValue("tile-info"))) { 1436 1437 result.hasOverzoomedTiles = true; 1437 1438 } 1438 result.hasAllLoadedTiles &= t.isLoaded();1439 1440 1439 if (t.isLoaded()) { 1441 1440 if (!t.hasError()) { 1442 1441 result.hasVisibleTiles = true; 1443 1442 } 1444 } else if (t.isLoading()) { 1445 result.hasLoadingTiles = true; 1443 } else { 1444 result.hasAllLoadedTiles = false; 1445 if (t.isLoading()) { 1446 result.hasLoadingTiles = true; 1447 } 1446 1448 } 1447 1449 } 1448 1450 return result;