diff --git a/bundles/org.openhab.core.io.transport.modbus/src/test/java/org/openhab/core/io/transport/modbus/test/SmokeTest.java b/bundles/org.openhab.core.io.transport.modbus/src/test/java/org/openhab/core/io/transport/modbus/test/SmokeTest.java index 7ee3013ad..424496209 100644 --- a/bundles/org.openhab.core.io.transport.modbus/src/test/java/org/openhab/core/io/transport/modbus/test/SmokeTest.java +++ b/bundles/org.openhab.core.io.transport.modbus/src/test/java/org/openhab/core/io/transport/modbus/test/SmokeTest.java @@ -995,8 +995,8 @@ public class SmokeTest extends IntegrationTestSupport { Method socketImplCreateMethod = socketImplClass.getDeclaredMethod("createPlatformSocketImpl", boolean.class); socketImplCreateMethod.setAccessible(true); - Object socketImpl = socketImplCreateMethod.invoke(/* null since we deal with static method */ null, - /* server */false); + Object socketImpl = socketImplCreateMethod + .invoke(/* null since we deal with static method */ giveNull(), /* server */false); Constructor socksSocketImplConstructor = socksSocketImplClass .getDeclaredConstructor(socketImplClass); diff --git a/bundles/org.openhab.core.transform/src/main/java/org/openhab/core/transform/AbstractFileTransformationService.java b/bundles/org.openhab.core.transform/src/main/java/org/openhab/core/transform/AbstractFileTransformationService.java index c9e230aee..f6d2cd65a 100644 --- a/bundles/org.openhab.core.transform/src/main/java/org/openhab/core/transform/AbstractFileTransformationService.java +++ b/bundles/org.openhab.core.transform/src/main/java/org/openhab/core/transform/AbstractFileTransformationService.java @@ -263,8 +263,9 @@ public abstract class AbstractFileTransformationService implements Transforma */ protected String getLocalizedProposedFilename(String filename, final WatchService watchService) { final File file = new File(filename); - if (file.getParent() != null) { - watchSubDirectory(file.getParent(), watchService); + final String parent = file.getParent(); + if (parent != null) { + watchSubDirectory(parent, watchService); } String sourcePath = getSourcePath(); diff --git a/pom.xml b/pom.xml index 8de7dbecc..b3e65e4a7 100644 --- a/pom.xml +++ b/pom.xml @@ -68,7 +68,7 @@ 7.0.0 3.7.2 - 2.3.0 + 2.4.0 4.4.6 4.4.6 0.16.0