forked from loafle/openapi-generator-original
Use Map interface for configureApiKeys (#7982)
This commit is contained in:
parent
ee2f0e04a9
commit
00d56375b0
@ -396,7 +396,7 @@ public class ApiClient{{#java8}} extends JavaTimeFormatter{{/java8}} {
|
||||
*
|
||||
* @param secrets Hash map from authentication name to its secret.
|
||||
*/
|
||||
public ApiClient configureApiKeys(HashMap<String, String> secrets) {
|
||||
public ApiClient configureApiKeys(Map<String, String> secrets) {
|
||||
for (Map.Entry<String, Authentication> authEntry : authentications.entrySet()) {
|
||||
Authentication auth = authEntry.getValue();
|
||||
if (auth instanceof ApiKeyAuth) {
|
||||
|
@ -313,7 +313,7 @@ public class ApiClient extends JavaTimeFormatter {
|
||||
*
|
||||
* @param secrets Hash map from authentication name to its secret.
|
||||
*/
|
||||
public ApiClient configureApiKeys(HashMap<String, String> secrets) {
|
||||
public ApiClient configureApiKeys(Map<String, String> secrets) {
|
||||
for (Map.Entry<String, Authentication> authEntry : authentications.entrySet()) {
|
||||
Authentication auth = authEntry.getValue();
|
||||
if (auth instanceof ApiKeyAuth) {
|
||||
|
@ -324,7 +324,7 @@ public class ApiClient {
|
||||
*
|
||||
* @param secrets Hash map from authentication name to its secret.
|
||||
*/
|
||||
public ApiClient configureApiKeys(HashMap<String, String> secrets) {
|
||||
public ApiClient configureApiKeys(Map<String, String> secrets) {
|
||||
for (Map.Entry<String, Authentication> authEntry : authentications.entrySet()) {
|
||||
Authentication auth = authEntry.getValue();
|
||||
if (auth instanceof ApiKeyAuth) {
|
||||
|
@ -270,7 +270,7 @@ public class ApiClient extends JavaTimeFormatter {
|
||||
*
|
||||
* @param secrets Hash map from authentication name to its secret.
|
||||
*/
|
||||
public ApiClient configureApiKeys(HashMap<String, String> secrets) {
|
||||
public ApiClient configureApiKeys(Map<String, String> secrets) {
|
||||
for (Map.Entry<String, Authentication> authEntry : authentications.entrySet()) {
|
||||
Authentication auth = authEntry.getValue();
|
||||
if (auth instanceof ApiKeyAuth) {
|
||||
|
@ -397,7 +397,7 @@ public class ApiClient extends JavaTimeFormatter {
|
||||
*
|
||||
* @param secrets Hash map from authentication name to its secret.
|
||||
*/
|
||||
public ApiClient configureApiKeys(HashMap<String, String> secrets) {
|
||||
public ApiClient configureApiKeys(Map<String, String> secrets) {
|
||||
for (Map.Entry<String, Authentication> authEntry : authentications.entrySet()) {
|
||||
Authentication auth = authEntry.getValue();
|
||||
if (auth instanceof ApiKeyAuth) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user