Skip to content

Commit

Permalink
[samsungtv] Removed dependency on org.apache.commons (openhab#8425)
Browse files Browse the repository at this point in the history
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
  • Loading branch information
cweitkamp authored and andrewfg committed Oct 8, 2020
1 parent f18e37e commit fe1cb48
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@
import java.net.InetSocketAddress;
import java.net.Socket;
import java.util.Arrays;
import java.util.Base64;
import java.util.List;

import org.apache.commons.net.util.Base64;
import org.eclipse.jdt.annotation.NonNullByDefault;
import org.eclipse.jdt.annotation.Nullable;
import org.slf4j.Logger;
Expand Down Expand Up @@ -321,7 +321,7 @@ private void writeString(Writer writer, String str) throws IOException {
}

private void writeBase64String(Writer writer, String str) throws IOException {
String tmp = new String(Base64.encodeBase64(str.getBytes()));
String tmp = Base64.getEncoder().encodeToString(str.getBytes());
writeString(writer, tmp);
}

Expand Down

0 comments on commit fe1cb48

Please sign in to comment.