reset all test code

This commit is contained in:
sonora 2015-01-16 19:51:10 +01:00
parent edd224da96
commit 8b8770b4d9

View file

@ -59,7 +59,7 @@ public class RegionAddressRepositoryBinary implements RegionAddressRepository {
@Override @Override
public synchronized void preloadCities(ResultMatcher<City> resultMatcher) { public synchronized void preloadCities(ResultMatcher<City> resultMatcher) {
// if (cities.isEmpty()) { if (cities.isEmpty()) {
try { try {
List<City> cs = file.getCities(region, BinaryMapIndexReader.buildAddressRequest(resultMatcher), List<City> cs = file.getCities(region, BinaryMapIndexReader.buildAddressRequest(resultMatcher),
BinaryMapAddressReaderAdapter.CITY_TOWN_TYPE); BinaryMapAddressReaderAdapter.CITY_TOWN_TYPE);
@ -76,7 +76,7 @@ public class RegionAddressRepositoryBinary implements RegionAddressRepository {
} catch (IOException e) { } catch (IOException e) {
log.error("Disk operation failed", e); //$NON-NLS-1$ log.error("Disk operation failed", e); //$NON-NLS-1$
} }
// } }
} }
public City getClosestCity(LatLon l, List<City> cache) { public City getClosestCity(LatLon l, List<City> cache) {
@ -163,7 +163,7 @@ public class RegionAddressRepositoryBinary implements RegionAddressRepository {
if (cities.isEmpty()) { if (cities.isEmpty()) {
preloadCities(resultMatcher); preloadCities(resultMatcher);
citiesToFill.addAll(cities.values()); citiesToFill.addAll(cities.values());
// return citiesToFill; return citiesToFill;
} }
preloadCities(null); preloadCities(null);