}
@Override
- protected Kind<?>[] getWatchEventKinds(@Nullable Path directory) {
+ protected Kind<?> @Nullable [] getWatchEventKinds(@Nullable Path directory) {
return new Kind<?>[] { ENTRY_CREATE, ENTRY_DELETE, ENTRY_MODIFY };
}
}
@Override
- protected void updateProperties(final Map<String, String> properties) {
+ protected void updateProperties(final @Nullable Map<String, String> properties) {
super.updateProperties(properties);
}
}
@Override
- protected void updateProperties(Map<String, String> properties) {
+ protected void updateProperties(@Nullable Map<String, String> properties) {
String oldHostVersion = getThing().getProperties().get(LifxBindingConstants.PROPERTY_HOST_VERSION);
super.updateProperties(properties);
String newHostVersion = getThing().getProperties().get(LifxBindingConstants.PROPERTY_HOST_VERSION);
import javax.measure.Unit;
import org.eclipse.jdt.annotation.NonNullByDefault;
+import org.eclipse.jdt.annotation.Nullable;
import org.openhab.binding.luxtronikheatpump.internal.enums.HeatpumpChannel;
import org.openhab.binding.luxtronikheatpump.internal.enums.HeatpumpCoolingOperationMode;
import org.openhab.binding.luxtronikheatpump.internal.enums.HeatpumpOperationMode;
}
@Override
- public void updateProperty(String name, String value) {
+ public void updateProperty(String name, @Nullable String value) {
super.updateProperty(name, value);
}
}
@Override
- protected Kind<?>[] getWatchEventKinds(@Nullable Path directory) {
+ protected Kind<?> @Nullable [] getWatchEventKinds(@Nullable Path directory) {
return new Kind<?>[] { ENTRY_CREATE, ENTRY_DELETE, ENTRY_MODIFY };
}
}
@Override
- public void updateProperties(Map<String, String> properties) {
+ public void updateProperties(@Nullable Map<String, String> properties) {
super.updateProperties(properties);
}
import java.util.Map;
import org.eclipse.jdt.annotation.NonNullByDefault;
+import org.eclipse.jdt.annotation.Nullable;
import org.openhab.core.thing.Bridge;
import org.openhab.core.thing.ChannelUID;
import org.openhab.core.thing.binding.BaseBridgeHandler;
* @param properties properties map, that was updated and should be persisted
*/
@Override
- public void updateProperties(Map<String, String> properties) {
+ public void updateProperties(@Nullable Map<String, String> properties) {
super.updateProperties(properties);
}
import java.util.Map;
import org.eclipse.jdt.annotation.NonNullByDefault;
+import org.eclipse.jdt.annotation.Nullable;
import org.openhab.core.thing.Thing;
import org.openhab.core.thing.binding.BaseThingHandler;
* @param properties properties map, that was updated and should be persisted
*/
@Override
- public void updateProperties(Map<String, String> properties) {
+ public void updateProperties(@Nullable Map<String, String> properties) {
super.updateProperties(properties);
}
}
}
@Override
- protected Kind<?>[] getWatchEventKinds(@Nullable Path directory) {
+ protected Kind<?> @Nullable [] getWatchEventKinds(@Nullable Path directory) {
return new Kind<?>[] { ENTRY_CREATE, ENTRY_DELETE, ENTRY_MODIFY };
}
import org.osgi.service.component.annotations.Activate;
import org.osgi.service.component.annotations.Component;
import org.osgi.service.component.annotations.Reference;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
/**
* The {@link TransformationScriptWatcher} watches the transformation directory for files. If a deleted/modified file is
*/
@Component
public class TransformationScriptWatcher extends AbstractWatchService {
-
public static final String TRANSFORM_FOLDER = OpenHAB.getConfigFolder() + File.separator
+ TransformationService.TRANSFORM_FOLDER_NAME;
+ private final Logger logger = LoggerFactory.getLogger(TransformationScriptWatcher.class);
+
private final JavaScriptEngineManager manager;
@Activate