Skip to content

Commit c906d6d

Browse files
committed
Fix Codacy issues
1 parent ed32ebb commit c906d6d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

app/src/main/java/fr/free/nrw/commons/nearby/NearbyController.java

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
package fr.free.nrw.commons.nearby;
22

3+
import static fr.free.nrw.commons.utils.LengthUtils.computeDistanceBetween;
4+
import static fr.free.nrw.commons.utils.LengthUtils.formatDistanceBetween;
5+
36
import android.content.Context;
47
import android.content.SharedPreferences;
58
import android.preference.PreferenceManager;
@@ -19,9 +22,6 @@
1922

2023
import timber.log.Timber;
2124

22-
import static fr.free.nrw.commons.utils.LengthUtils.computeDistanceBetween;
23-
import static fr.free.nrw.commons.utils.LengthUtils.formatDistanceBetween;
24-
2525

2626
public class NearbyController {
2727
private static final int MAX_RESULTS = 1000;
@@ -60,7 +60,7 @@ public int compare(Place lhs, Place rhs) {
6060
* Loads attractions from location for list view, we need to return Place data type.
6161
* @param curLatLng users current location
6262
* @param context current activity
63-
* @return
63+
* @return Place list that holds nearby places
6464
*/
6565

6666
public static List<Place> loadAttractionsFromLocationToPlaces(LatLng curLatLng,
@@ -79,7 +79,7 @@ public static List<Place> loadAttractionsFromLocationToPlaces(LatLng curLatLng,
7979
*Loads attractions from location for map view, we need to return BaseMarkerOption data type.
8080
* @param curLatLng users current location
8181
* @param context the activity
82-
* @return
82+
* @return BaseMarkerOprions list that holds nearby places
8383
*/
8484
public static List<BaseMarkerOptions> loadAttractionsFromLocationToBaseMarkerOptions(
8585
LatLng curLatLng,

0 commit comments

Comments
 (0)