Skip to content

Commit

Permalink
Create maps and lists correctly. (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
OGKevin committed May 5, 2018
1 parent 84a3dd3 commit e8b869b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
11 changes: 7 additions & 4 deletions src/main/java/com/bunq/sdk/context/ApiContext.java
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,12 @@ private ApiContext(ApiEnvironmentType environmentType, String apiKey) {
/**
* Create and initialize an API Context with current IP as permitted and no proxy.
*/
public static ApiContext create(ApiEnvironmentType environmentType, String apiKey,
String deviceDescription) {
return create(environmentType, apiKey, deviceDescription, new ArrayList<>());
public static ApiContext create(
ApiEnvironmentType environmentType,
String apiKey,
String deviceDescription
) {
return create(environmentType, apiKey, deviceDescription, new ArrayList<String>());
}

/**
Expand All @@ -112,7 +115,7 @@ public static ApiContext create(ApiEnvironmentType environmentType, String apiKe
*/
public static ApiContext create(ApiEnvironmentType environmentType, String apiKey,
String deviceDescription, String proxy) {
return create(environmentType, apiKey, deviceDescription, new ArrayList<>(), proxy);
return create(environmentType, apiKey, deviceDescription, new ArrayList<String>(), proxy);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/bunq/sdk/http/ApiClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ public BunqResponseRaw post(
/**
*/
private HttpUrl determineFullUri(String uri) {
return determineFullUri(uri, new HashMap<>());
return determineFullUri(uri, new HashMap<String, String>());
}

/**
Expand Down

0 comments on commit e8b869b

Please sign in to comment.