Skip to content

Commit 26be601

Browse files
committed
Yeah. But no.
1 parent 431dd9b commit 26be601

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/main/java/com/databox/sdk/Databox.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,6 @@ public StringBuffer lastPush() throws IOException {
192192
}
193193

194194
private String base64Encode(byte[] input) {
195-
Double version = Double.parseDouble(System.getProperty("java.specification.version"));
196-
return version < 1.8 ? DatatypeConverter.printBase64Binary(input) : new String(Base64.getEncoder().encode(input));
195+
return DatatypeConverter.printBase64Binary(input);
197196
}
198197
}

0 commit comments

Comments
 (0)