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