suppress the cast warning in java okhttp-gson client (#20076)

This commit is contained in:
William Cheng
2024-11-10 17:34:40 +08:00
committed by GitHub
parent 13b11d7706
commit 6ff52c7e31
15 changed files with 30 additions and 15 deletions

View File

@@ -829,7 +829,7 @@ public class ApiClient {
return params;
}
/**
/**
* Formats the specified free-form query parameters to a list of {@code Pair} objects.
*
* @param value The free-form query parameters.
@@ -843,6 +843,7 @@ public class ApiClient {
return params;
}
@SuppressWarnings("unchecked")
final Map<String, Object> valuesMap = (Map<String, Object>) value;
for (Map.Entry<String, Object> entry : valuesMap.entrySet()) {