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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
15 changed files with 30 additions and 15 deletions

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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