Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suppress the cast warning in java okhttp-gson client #20076

Merged
merged 1 commit into from
Nov 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -987,7 +987,7 @@ public class ApiClient {
}
{{/dynamicOperations}}

/**
/**
* Formats the specified free-form query parameters to a list of {@code Pair} objects.
*
* @param value The free-form query parameters.
Expand All @@ -1001,6 +1001,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()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -829,7 +829,7 @@ public List<Pair> parameterToPairs(String collectionFormat, String name, Collect
return params;
}

/**
/**
* Formats the specified free-form query parameters to a list of {@code Pair} objects.
*
* @param value The free-form query parameters.
Expand All @@ -843,6 +843,7 @@ public List<Pair> freeFormParameterToPairs(Object value) {
return params;
}

@SuppressWarnings("unchecked")
final Map<String, Object> valuesMap = (Map<String, Object>) value;

for (Map.Entry<String, Object> entry : valuesMap.entrySet()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -759,7 +759,7 @@ public List<Pair> parameterToPairs(String collectionFormat, String name, Collect
return params;
}

/**
/**
* Formats the specified free-form query parameters to a list of {@code Pair} objects.
*
* @param value The free-form query parameters.
Expand All @@ -773,6 +773,7 @@ public List<Pair> freeFormParameterToPairs(Object value) {
return params;
}

@SuppressWarnings("unchecked")
final Map<String, Object> valuesMap = (Map<String, Object>) value;

for (Map.Entry<String, Object> entry : valuesMap.entrySet()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -733,7 +733,7 @@ public List<Pair> parameterToPairs(String collectionFormat, String name, Collect
return params;
}

/**
/**
* Formats the specified free-form query parameters to a list of {@code Pair} objects.
*
* @param value The free-form query parameters.
Expand All @@ -747,6 +747,7 @@ public List<Pair> freeFormParameterToPairs(Object value) {
return params;
}

@SuppressWarnings("unchecked")
final Map<String, Object> valuesMap = (Map<String, Object>) value;

for (Map.Entry<String, Object> entry : valuesMap.entrySet()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -733,7 +733,7 @@ public List<Pair> parameterToPairs(String collectionFormat, String name, Collect
return params;
}

/**
/**
* Formats the specified free-form query parameters to a list of {@code Pair} objects.
*
* @param value The free-form query parameters.
Expand All @@ -747,6 +747,7 @@ public List<Pair> freeFormParameterToPairs(Object value) {
return params;
}

@SuppressWarnings("unchecked")
final Map<String, Object> valuesMap = (Map<String, Object>) value;

for (Map.Entry<String, Object> entry : valuesMap.entrySet()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -733,7 +733,7 @@ public List<Pair> parameterToPairs(String collectionFormat, String name, Collect
return params;
}

/**
/**
* Formats the specified free-form query parameters to a list of {@code Pair} objects.
*
* @param value The free-form query parameters.
Expand All @@ -747,6 +747,7 @@ public List<Pair> freeFormParameterToPairs(Object value) {
return params;
}

@SuppressWarnings("unchecked")
final Map<String, Object> valuesMap = (Map<String, Object>) value;

for (Map.Entry<String, Object> entry : valuesMap.entrySet()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -829,7 +829,7 @@ public List<Pair> parameterToPairs(String collectionFormat, String name, Collect
return params;
}

/**
/**
* Formats the specified free-form query parameters to a list of {@code Pair} objects.
*
* @param value The free-form query parameters.
Expand All @@ -843,6 +843,7 @@ public List<Pair> freeFormParameterToPairs(Object value) {
return params;
}

@SuppressWarnings("unchecked")
final Map<String, Object> valuesMap = (Map<String, Object>) value;

for (Map.Entry<String, Object> entry : valuesMap.entrySet()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -849,7 +849,7 @@ public List<Pair> parameterToPairs(String collectionFormat, String name, Collect
return params;
}

/**
/**
* Formats the specified free-form query parameters to a list of {@code Pair} objects.
*
* @param value The free-form query parameters.
Expand All @@ -863,6 +863,7 @@ public List<Pair> freeFormParameterToPairs(Object value) {
return params;
}

@SuppressWarnings("unchecked")
final Map<String, Object> valuesMap = (Map<String, Object>) value;

for (Map.Entry<String, Object> entry : valuesMap.entrySet()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -834,7 +834,7 @@ public List<Pair> parameterToPairs(Parameter param, Collection value) {
return params;
}

/**
/**
* Formats the specified free-form query parameters to a list of {@code Pair} objects.
*
* @param value The free-form query parameters.
Expand All @@ -848,6 +848,7 @@ public List<Pair> freeFormParameterToPairs(Object value) {
return params;
}

@SuppressWarnings("unchecked")
final Map<String, Object> valuesMap = (Map<String, Object>) value;

for (Map.Entry<String, Object> entry : valuesMap.entrySet()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -829,7 +829,7 @@ public List<Pair> parameterToPairs(String collectionFormat, String name, Collect
return params;
}

/**
/**
* Formats the specified free-form query parameters to a list of {@code Pair} objects.
*
* @param value The free-form query parameters.
Expand All @@ -843,6 +843,7 @@ public List<Pair> freeFormParameterToPairs(Object value) {
return params;
}

@SuppressWarnings("unchecked")
final Map<String, Object> valuesMap = (Map<String, Object>) value;

for (Map.Entry<String, Object> entry : valuesMap.entrySet()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -832,7 +832,7 @@ public List<Pair> parameterToPairs(String collectionFormat, String name, Collect
return params;
}

/**
/**
* Formats the specified free-form query parameters to a list of {@code Pair} objects.
*
* @param value The free-form query parameters.
Expand All @@ -846,6 +846,7 @@ public List<Pair> freeFormParameterToPairs(Object value) {
return params;
}

@SuppressWarnings("unchecked")
final Map<String, Object> valuesMap = (Map<String, Object>) value;

for (Map.Entry<String, Object> entry : valuesMap.entrySet()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -835,7 +835,7 @@ public List<Pair> parameterToPairs(String collectionFormat, String name, Collect
return params;
}

/**
/**
* Formats the specified free-form query parameters to a list of {@code Pair} objects.
*
* @param value The free-form query parameters.
Expand All @@ -849,6 +849,7 @@ public List<Pair> freeFormParameterToPairs(Object value) {
return params;
}

@SuppressWarnings("unchecked")
final Map<String, Object> valuesMap = (Map<String, Object>) value;

for (Map.Entry<String, Object> entry : valuesMap.entrySet()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -829,7 +829,7 @@ public List<Pair> parameterToPairs(String collectionFormat, String name, Collect
return params;
}

/**
/**
* Formats the specified free-form query parameters to a list of {@code Pair} objects.
*
* @param value The free-form query parameters.
Expand All @@ -843,6 +843,7 @@ public List<Pair> freeFormParameterToPairs(Object value) {
return params;
}

@SuppressWarnings("unchecked")
final Map<String, Object> valuesMap = (Map<String, Object>) value;

for (Map.Entry<String, Object> entry : valuesMap.entrySet()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -829,7 +829,7 @@ public List<Pair> parameterToPairs(String collectionFormat, String name, Collect
return params;
}

/**
/**
* Formats the specified free-form query parameters to a list of {@code Pair} objects.
*
* @param value The free-form query parameters.
Expand All @@ -843,6 +843,7 @@ public List<Pair> freeFormParameterToPairs(Object value) {
return params;
}

@SuppressWarnings("unchecked")
final Map<String, Object> valuesMap = (Map<String, Object>) value;

for (Map.Entry<String, Object> entry : valuesMap.entrySet()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -903,7 +903,7 @@ public List<Pair> parameterToPairs(String collectionFormat, String name, Collect
return params;
}

/**
/**
* Formats the specified free-form query parameters to a list of {@code Pair} objects.
*
* @param value The free-form query parameters.
Expand All @@ -917,6 +917,7 @@ public List<Pair> freeFormParameterToPairs(Object value) {
return params;
}

@SuppressWarnings("unchecked")
final Map<String, Object> valuesMap = (Map<String, Object>) value;

for (Map.Entry<String, Object> entry : valuesMap.entrySet()) {
Expand Down
Loading