]> git.basschouten.com Git - openhab-addons.git/commitdiff
Fix checkstyle (#15603)
authorlsiepel <leosiepel@gmail.com>
Sat, 23 Sep 2023 16:31:27 +0000 (18:31 +0200)
committerGitHub <noreply@github.com>
Sat, 23 Sep 2023 16:31:27 +0000 (18:31 +0200)
Signed-off-by: Leo Siepel <leosiepel@gmail.com>
bundles/org.openhab.binding.lghombot/src/main/java/org/openhab/binding/lghombot/internal/CameraUtil.java
bundles/org.openhab.binding.lghombot/src/main/java/org/openhab/binding/lghombot/internal/LGHomBotConfiguration.java

index 51f8b7d49f518e0555539dc689a4df8cf861509f..b69ae61fa0c3ee0f66068aba542c52fc5daa928f 100644 (file)
@@ -33,7 +33,7 @@ import org.slf4j.LoggerFactory;
 @NonNullByDefault
 public class CameraUtil {
 
-    private static final Logger logger = LoggerFactory.getLogger(CameraUtil.class);
+    private static final Logger LOGGER = LoggerFactory.getLogger(CameraUtil.class);
 
     private CameraUtil() {
         // No need to instance this class.
@@ -68,10 +68,10 @@ public class CameraUtil {
         ByteArrayOutputStream baos = new ByteArrayOutputStream();
         try {
             if (!ImageIO.write(image, "jpg", baos)) {
-                logger.debug("Couldn't find JPEG writer.");
+                LOGGER.debug("Couldn't find JPEG writer.");
             }
         } catch (IOException e) {
-            logger.info("IOException creating JPEG image.", e);
+            LOGGER.info("IOException creating JPEG image.", e);
         }
         byte[] byteArray = baos.toByteArray();
         if (byteArray != null && byteArray.length > 0) {
index e150cf06e16830fbff791d06f0ae39d024cc3a0f..3c4b8f707c37c143c3d15cb1367a9ff515758e14 100644 (file)
@@ -13,7 +13,6 @@
 package org.openhab.binding.lghombot.internal;
 
 import org.eclipse.jdt.annotation.NonNullByDefault;
-import org.openhab.binding.lghombot.internal.discovery.LGHomBotDiscovery;
 
 /**
  * The {@link LGHomBotConfiguration} class contains fields mapping thing configuration parameters.
@@ -24,7 +23,8 @@ import org.openhab.binding.lghombot.internal.discovery.LGHomBotDiscovery;
 public class LGHomBotConfiguration {
 
     /**
-     * Constant field used in {@link LGHomBotDiscovery} to set the configuration property during discovery. Value of
+     * Constant field used in {@link org.openhab.binding.lghombot.internal.discovery.LGHomBotDiscovery} to set the
+     * configuration property during discovery. Value of
      * this field needs to match {@link #ipAddress}
      */
     public static final String IP_ADDRESS = "ipAddress";