Skip to content

Commit

Permalink
formatting feedback (bunq#93)
Browse files Browse the repository at this point in the history
  • Loading branch information
tubbynl committed Jun 17, 2018
1 parent ffb56ad commit ad67ada
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/main/java/com/bunq/sdk/http/BunqBasicHeader.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ public class BunqBasicHeader {
private final String value;

public static BunqBasicHeader get(BunqHeader header,Response response) {
return new BunqBasicHeader(header,response.header(header.getHeader()));
return new BunqBasicHeader(header, response.header(header.getHeader()));
}

public static Optional<BunqBasicHeader> get(String header, String value) {
return BunqHeader.parse(header).map(h->new BunqBasicHeader(h,value));
return BunqHeader.parse(header).map(h -> new BunqBasicHeader(h,value));
}

public BunqBasicHeader(BunqHeader name, String value) {
Expand Down
2 changes: 1 addition & 1 deletion src/test/java/com/bunq/sdk/http/BunqHeaderTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,4 @@ public void addToMap() {
assertEquals("0 0 0 0 000",headers.get("X-Bunq-Geolocation"));
assertEquals("test-agent",headers.get("User-Agent"));
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@ public void createAvatarTest() {
}

private String uploadAvatar(byte[] file_contents) {
HashMap<String, String> customHeaders = new HashMap<>();
BunqHeader.attachmentDescription.addTo(customHeaders,ATTACHMENT_PATH_IN);
BunqHeader.contentType.addTo(customHeaders,CONTENT_TYPE);
return AttachmentPublic.create(customHeaders, file_contents).getValue();
HashMap<String, String> allCustomHeader = new HashMap<>();
BunqHeader.attachmentDescription.addTo(allCustomHeader, ATTACHMENT_PATH_IN);
BunqHeader.contentType.addTo(allCustomHeader, CONTENT_TYPE);
return AttachmentPublic.create(allCustomHeader, file_contents).getValue();
}
}

0 comments on commit ad67ada

Please sign in to comment.