Skip to content

Commit 4f6d041

Browse files
committed
Fix typo and cast
1 parent af89442 commit 4f6d041

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ public Task resetRankingRulesSettings(String uid) throws Exception {
117117
* @throws Exception if an error occurs
118118
*/
119119
public Map<String, String[]> getSynonymsSettings(String uid) throws Exception {
120-
return this.gson.<Map<String, String[]>>fromJson(
120+
return this.gson.fromJson(
121121
meilisearchHttpRequest.get("/indexes/" + uid + "/settings/synonyms"), Map.class);
122122
}
123123

@@ -400,7 +400,7 @@ public Task resetDistinctAttributeSettings(String uid) throws Exception {
400400
* @throws Exception if an error occurs
401401
*/
402402
public TypoTolerance getTypoToleranceSettings(String uid) throws Exception {
403-
return this.gson.<TypoTolerance>fromJson(
403+
return this.gson.fromJson(
404404
meilisearchHttpRequest.get("/indexes/" + uid + "/settings/typo-tolerance"),
405405
TypoTolerance.class);
406406
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ public void testUpdateSettingsSort() throws Exception {
107107
@Test
108108
@DisplayName("Test update settings changing the typo tolerance")
109109
public void testUpdateSettingsTypoTolerance() throws Exception {
110-
Index index = createIndex("updateSettingsSynonyms");
110+
Index index = createIndex("updateSettingsTypoTolerance");
111111
Settings settings = index.getSettings();
112112

113113
TypoTolerance typoTolerance = new TypoTolerance();

0 commit comments

Comments
 (0)