Fix Codacy issues

This commit is contained in:
Neslihan 2017-05-12 19:12:39 +03:00
parent ed32ebbb62
commit c906d6d3d4

View file

@ -1,5 +1,8 @@
package fr.free.nrw.commons.nearby; package fr.free.nrw.commons.nearby;
import static fr.free.nrw.commons.utils.LengthUtils.computeDistanceBetween;
import static fr.free.nrw.commons.utils.LengthUtils.formatDistanceBetween;
import android.content.Context; import android.content.Context;
import android.content.SharedPreferences; import android.content.SharedPreferences;
import android.preference.PreferenceManager; import android.preference.PreferenceManager;
@ -19,9 +22,6 @@ import java.util.Map;
import timber.log.Timber; import timber.log.Timber;
import static fr.free.nrw.commons.utils.LengthUtils.computeDistanceBetween;
import static fr.free.nrw.commons.utils.LengthUtils.formatDistanceBetween;
public class NearbyController { public class NearbyController {
private static final int MAX_RESULTS = 1000; private static final int MAX_RESULTS = 1000;
@ -60,7 +60,7 @@ public class NearbyController {
* Loads attractions from location for list view, we need to return Place data type. * Loads attractions from location for list view, we need to return Place data type.
* @param curLatLng users current location * @param curLatLng users current location
* @param context current activity * @param context current activity
* @return * @return Place list that holds nearby places
*/ */
public static List<Place> loadAttractionsFromLocationToPlaces(LatLng curLatLng, public static List<Place> loadAttractionsFromLocationToPlaces(LatLng curLatLng,
@ -79,7 +79,7 @@ public class NearbyController {
*Loads attractions from location for map view, we need to return BaseMarkerOption data type. *Loads attractions from location for map view, we need to return BaseMarkerOption data type.
* @param curLatLng users current location * @param curLatLng users current location
* @param context the activity * @param context the activity
* @return * @return BaseMarkerOprions list that holds nearby places
*/ */
public static List<BaseMarkerOptions> loadAttractionsFromLocationToBaseMarkerOptions( public static List<BaseMarkerOptions> loadAttractionsFromLocationToBaseMarkerOptions(
LatLng curLatLng, LatLng curLatLng,