mirror of
https://github.com/openhab/openhab-addons.git
synced 2025-01-26 15:21:41 +01:00
Fix checkstyle (#15603)
Signed-off-by: Leo Siepel <leosiepel@gmail.com>
This commit is contained in:
parent
7802a4a3ff
commit
1da4dca257
@ -33,7 +33,7 @@ import org.slf4j.LoggerFactory;
|
|||||||
@NonNullByDefault
|
@NonNullByDefault
|
||||||
public class CameraUtil {
|
public class CameraUtil {
|
||||||
|
|
||||||
private static final Logger logger = LoggerFactory.getLogger(CameraUtil.class);
|
private static final Logger LOGGER = LoggerFactory.getLogger(CameraUtil.class);
|
||||||
|
|
||||||
private CameraUtil() {
|
private CameraUtil() {
|
||||||
// No need to instance this class.
|
// No need to instance this class.
|
||||||
@ -68,10 +68,10 @@ public class CameraUtil {
|
|||||||
ByteArrayOutputStream baos = new ByteArrayOutputStream();
|
ByteArrayOutputStream baos = new ByteArrayOutputStream();
|
||||||
try {
|
try {
|
||||||
if (!ImageIO.write(image, "jpg", baos)) {
|
if (!ImageIO.write(image, "jpg", baos)) {
|
||||||
logger.debug("Couldn't find JPEG writer.");
|
LOGGER.debug("Couldn't find JPEG writer.");
|
||||||
}
|
}
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
logger.info("IOException creating JPEG image.", e);
|
LOGGER.info("IOException creating JPEG image.", e);
|
||||||
}
|
}
|
||||||
byte[] byteArray = baos.toByteArray();
|
byte[] byteArray = baos.toByteArray();
|
||||||
if (byteArray != null && byteArray.length > 0) {
|
if (byteArray != null && byteArray.length > 0) {
|
||||||
|
@ -13,7 +13,6 @@
|
|||||||
package org.openhab.binding.lghombot.internal;
|
package org.openhab.binding.lghombot.internal;
|
||||||
|
|
||||||
import org.eclipse.jdt.annotation.NonNullByDefault;
|
import org.eclipse.jdt.annotation.NonNullByDefault;
|
||||||
import org.openhab.binding.lghombot.internal.discovery.LGHomBotDiscovery;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The {@link LGHomBotConfiguration} class contains fields mapping thing configuration parameters.
|
* 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 {
|
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}
|
* this field needs to match {@link #ipAddress}
|
||||||
*/
|
*/
|
||||||
public static final String IP_ADDRESS = "ipAddress";
|
public static final String IP_ADDRESS = "ipAddress";
|
||||||
|
Loading…
Reference in New Issue
Block a user