From ad67adaf991efcb3a5135278c0f3108572c4783b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michae=CC=88l=20van=20de=20Giessen?= Date: Sun, 17 Jun 2018 21:23:56 +0200 Subject: [PATCH] formatting feedback (bunq/sdk_java#93) --- src/main/java/com/bunq/sdk/http/BunqBasicHeader.java | 4 ++-- src/test/java/com/bunq/sdk/http/BunqHeaderTest.java | 2 +- .../com/bunq/sdk/model/generated/endpoint/AvatarTest.java | 8 ++++---- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/main/java/com/bunq/sdk/http/BunqBasicHeader.java b/src/main/java/com/bunq/sdk/http/BunqBasicHeader.java index 247f17d7..76ea0ea5 100644 --- a/src/main/java/com/bunq/sdk/http/BunqBasicHeader.java +++ b/src/main/java/com/bunq/sdk/http/BunqBasicHeader.java @@ -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 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) { diff --git a/src/test/java/com/bunq/sdk/http/BunqHeaderTest.java b/src/test/java/com/bunq/sdk/http/BunqHeaderTest.java index 244e92d6..d18989c9 100644 --- a/src/test/java/com/bunq/sdk/http/BunqHeaderTest.java +++ b/src/test/java/com/bunq/sdk/http/BunqHeaderTest.java @@ -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")); } -} \ No newline at end of file +} diff --git a/src/test/java/com/bunq/sdk/model/generated/endpoint/AvatarTest.java b/src/test/java/com/bunq/sdk/model/generated/endpoint/AvatarTest.java index 830fc020..65284c1b 100644 --- a/src/test/java/com/bunq/sdk/model/generated/endpoint/AvatarTest.java +++ b/src/test/java/com/bunq/sdk/model/generated/endpoint/AvatarTest.java @@ -54,9 +54,9 @@ public void createAvatarTest() { } private String uploadAvatar(byte[] file_contents) { - HashMap customHeaders = new HashMap<>(); - BunqHeader.attachmentDescription.addTo(customHeaders,ATTACHMENT_PATH_IN); - BunqHeader.contentType.addTo(customHeaders,CONTENT_TYPE); - return AttachmentPublic.create(customHeaders, file_contents).getValue(); + HashMap allCustomHeader = new HashMap<>(); + BunqHeader.attachmentDescription.addTo(allCustomHeader, ATTACHMENT_PATH_IN); + BunqHeader.contentType.addTo(allCustomHeader, CONTENT_TYPE); + return AttachmentPublic.create(allCustomHeader, file_contents).getValue(); } }