Skip to content
This repository was archived by the owner on Jan 31, 2022. It is now read-only.

Commit e1b4e25

Browse files
authored
Fix(Places): getByObjectIDValid (#472)
* fix(fastlane): Add empty actions folder * docs(PlacesQuery): Fix links in docstrings * fix(PlacesClientTest): Update Rivoli's ObjectID
1 parent f65e238 commit e1b4e25

File tree

3 files changed

+10
-5
lines changed

3 files changed

+10
-5
lines changed

algoliasearch/src/main/java/com/algolia/search/saas/places/PlacesQuery.java

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ public PlacesQuery(String query) {
5656

5757
/**
5858
* Clone an existing query.
59+
*
5960
* @param other The query to be cloned.
6061
*/
6162
public PlacesQuery(@NonNull PlacesQuery other) {
@@ -137,6 +138,7 @@ PlacesQuery setAroundRadius(Integer radius) {
137138

138139
/**
139140
* Get the current radius for around latitude/longitude queries.
141+
*
140142
* @return Query.RADIUS_ALL if set to 'all'.
141143
*/
142144
public Integer getAroundRadius() {
@@ -268,7 +270,7 @@ public Type getType() {
268270

269271
/**
270272
* Restrict the search results to a single language.
271-
* You can pass two letters country codes ([ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes)).
273+
* You can pass two letters country codes (<a href="https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes">ISO 639-1</a>).
272274
*
273275
* @param language The language used to return the results, or `null` to use all available languages.
274276
* @return This query.
@@ -285,7 +287,8 @@ public String getLanguage() {
285287

286288
/**
287289
* Restrict the search results to a specific list of countries.
288-
* You can pass two letters country codes ([ISO 3166-1](https://en.wikipedia.org/wiki/ISO_3166-1#Officially_assigned_code_elements)).
290+
* You can pass two letters country codes (<a href="https://en.wikipedia.org/wiki/ISO_3166-1#Officially_assigned_code_elements">ISO 3166-1</a>).
291+
* <p>
289292
* Default: Search on the whole planet.
290293
*
291294
* @param countries The countries to restrict the search to, or `null` to search on the whole planet.
@@ -305,6 +308,7 @@ public String[] getCountries() {
305308

306309
/**
307310
* Parse a query object from a URL query parameter string.
311+
*
308312
* @param queryParameters URL query parameter string.
309313
* @return The parsed query object.
310314
*/
@@ -322,14 +326,15 @@ PlacesQuery parse(@NonNull String queryParameters) {
322326
/**
323327
* Set a parameter in an untyped fashion.
324328
* This low-level accessor is intended to access parameters that this client does not yet support.
325-
* @param name The parameter's name.
329+
*
330+
* @param name The parameter's name.
326331
* @param value The parameter's value, or null to remove it.
327332
* It will first be converted to a String by the `toString()` method.
328333
* @return This instance (used to chain calls).
329334
*/
330335
@Override
331336
public @NonNull
332337
PlacesQuery set(@NonNull String name, @Nullable Object value) {
333-
return (PlacesQuery)super.set(name, value);
338+
return (PlacesQuery) super.set(name, value);
334339
}
335340
}

algoliasearch/src/test/java/com/algolia/search/saas/places/PlacesClientTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242

4343
@SuppressLint("DefaultLocale")
4444
public class PlacesClientTest extends RobolectricTestCase {
45-
public static final String OBJECT_ID_RUE_RIVOLI = "95057362_123324299";
45+
public static final String OBJECT_ID_RUE_RIVOLI = "afd71bb8613f70ca495d8996923b5fd5";
4646
PlacesClient places;
4747

4848
@Override

fastlane/actions/.empty

Whitespace-only changes.

0 commit comments

Comments
 (0)