Skip to content

Commit 314caf9

Browse files
committed
Fix due to review and linter
1 parent 8560a7b commit 314caf9

File tree

3 files changed

+11
-8
lines changed

3 files changed

+11
-8
lines changed

src/main/java/com/meilisearch/sdk/Client.java

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,7 @@ public TaskInfo createIndex(String uid, String primaryKey) throws MeilisearchExc
6868
}
6969

7070
/**
71-
* Gets all indexes
72-
* https://docs.meilisearch.com/reference/api/indexes.html#list-all-indexes
71+
* Gets all indexes https://docs.meilisearch.com/reference/api/indexes.html#list-all-indexes
7372
*
7473
* @return Results containing a list of indexes from the Meilisearch API
7574
* @throws MeilisearchException if an error occurs
@@ -83,10 +82,9 @@ public Results<Index> getIndexes() throws MeilisearchException {
8382
}
8483

8584
/**
86-
* Gets indexes
87-
* https://docs.meilisearch.com/reference/api/indexes.html#list-all-indexes
85+
* Gets indexes https://docs.meilisearch.com/reference/api/indexes.html#list-all-indexes
8886
*
89-
* @param query parameters accepted by the get indexes route
87+
* @param params query parameters accepted by the get indexes route
9088
* @return Results containing a list of indexes from the Meilisearch API
9189
* @throws MeilisearchException if an error occurs
9290
*/
@@ -99,8 +97,7 @@ public Results<Index> getIndexes(IndexesQuery params) throws MeilisearchExceptio
9997
}
10098

10199
/**
102-
* Gets all indexes
103-
* https://docs.meilisearch.com/reference/api/indexes.html#list-all-indexes
100+
* Gets all indexes https://docs.meilisearch.com/reference/api/indexes.html#list-all-indexes
104101
*
105102
* @return List of indexes from the Meilisearch API as String
106103
* @throws MeilisearchException if an error occurs

src/main/java/com/meilisearch/sdk/IndexesHandler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ Results<Index> getIndexes() throws MeilisearchException {
8484
* @throws MeilisearchException if an error occurs
8585
*/
8686
Results<Index> getIndexes(IndexesQuery params) throws MeilisearchException {
87-
return httpClient.get(param.toQuery(params), Results.class, Index.class);
87+
return httpClient.get(params.toQuery(params), Results.class, Index.class);
8888
}
8989

9090
/**

src/test/java/com/meilisearch/integration/ClientTest.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
import com.meilisearch.sdk.model.TaskInfo;
1616
import com.meilisearch.sdk.utils.Movie;
1717
import java.util.Arrays;
18+
import org.junit.jupiter.api.AfterAll;
1819
import org.junit.jupiter.api.BeforeEach;
1920
import org.junit.jupiter.api.Tag;
2021
import org.junit.jupiter.api.Test;
@@ -33,6 +34,11 @@ public void initialize() {
3334
cleanup();
3435
}
3536

37+
@AfterAll
38+
static void cleanMeilisearch() {
39+
cleanup();
40+
}
41+
3642
/** Test Index creation without PrimaryKey */
3743
@Test
3844
public void testCreateIndexWithoutPrimaryKey() throws Exception {

0 commit comments

Comments
 (0)