From 9d07b59b8a929bdfc91e51d26d8d9bb07161a67d Mon Sep 17 00:00:00 2001 From: Marius Date: Sun, 20 Mar 2016 18:06:31 +0100 Subject: [PATCH] Remove redundant string creation --- src/main/java/io/tus/java/client/TusUpload.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/io/tus/java/client/TusUpload.java b/src/main/java/io/tus/java/client/TusUpload.java index d9a72b7..b27a8f8 100644 --- a/src/main/java/io/tus/java/client/TusUpload.java +++ b/src/main/java/io/tus/java/client/TusUpload.java @@ -98,7 +98,7 @@ public String getEncodedMetadata() { if(!firstElement) { encoded += ","; } - encoded += entry.getKey() + " " + new String(base64Encode(entry.getValue().getBytes())); + encoded += entry.getKey() + " " + base64Encode(entry.getValue().getBytes()); firstElement = false; }