Avoid UnsupportedEncodingException & use const from StandardCharsets (#11948)

Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
This commit is contained in:
Christoph Weitkamp
2022-01-03 16:05:08 +01:00
committed by GitHub
parent 3f54327d5a
commit 167f8ebc49
52 changed files with 180 additions and 414 deletions

View File

@@ -14,7 +14,6 @@ package org.openhab.binding.solaredge.internal.connector;
import static org.openhab.binding.solaredge.internal.SolarEdgeBindingConstants.*;
import java.io.UnsupportedEncodingException;
import java.util.Queue;
import java.util.concurrent.Future;
import java.util.concurrent.ScheduledExecutorService;
@@ -193,8 +192,6 @@ public class WebInterface implements AtomicReferenceTrait {
/**
* authenticates with the Solaredge WEB interface
*
* @throws UnsupportedEncodingException
*/
private synchronized void authenticate() {
setAuthenticated(false);