Migrate from EnumSet<LocationType> in interfaces to just Set<LocationType>.

This commit is contained in:
Andreas Schildbach 2018-12-23 14:08:40 +01:00
parent d84e0af608
commit fe5a2a8453
10 changed files with 26 additions and 29 deletions

View file

@ -24,6 +24,7 @@ import java.io.InputStream;
import java.util.Date;
import java.util.EnumSet;
import java.util.Properties;
import java.util.Set;
import javax.annotation.Nullable;
@ -84,13 +85,13 @@ public abstract class AbstractProviderLiveTest {
return queryNearbyLocations(EnumSet.of(LocationType.STATION), location, 0, 5);
}
protected final NearbyLocationsResult queryNearbyLocations(final EnumSet<LocationType> types,
final Location location) throws IOException {
protected final NearbyLocationsResult queryNearbyLocations(final Set<LocationType> types, final Location location)
throws IOException {
return queryNearbyLocations(types, location, 0, 5);
}
protected final NearbyLocationsResult queryNearbyLocations(final EnumSet<LocationType> types,
final Location location, final int maxDistance, final int maxStations) throws IOException {
protected final NearbyLocationsResult queryNearbyLocations(final Set<LocationType> types, final Location location,
final int maxDistance, final int maxStations) throws IOException {
return provider.queryNearbyLocations(types, location, maxDistance, maxStations);
}