From bafbc46881f70c832837e9f412a2f2dfe6f6b224 Mon Sep 17 00:00:00 2001 From: Avgustin Marinov Date: Fri, 8 Nov 2024 16:42:42 +0200 Subject: [PATCH] Remove unnecessary slf4j dependency (#1975) Signed-off-by: Avgustin Marinov --- .../hawkbit/ControllerPollProperties.java | 26 ++++++++----------- hawkbit-dmf/hawkbit-dmf-amqp/pom.xml | 5 ---- 2 files changed, 11 insertions(+), 20 deletions(-) diff --git a/hawkbit-core/src/main/java/org/eclipse/hawkbit/ControllerPollProperties.java b/hawkbit-core/src/main/java/org/eclipse/hawkbit/ControllerPollProperties.java index f3a13e8cd..05a1e7c49 100644 --- a/hawkbit-core/src/main/java/org/eclipse/hawkbit/ControllerPollProperties.java +++ b/hawkbit-core/src/main/java/org/eclipse/hawkbit/ControllerPollProperties.java @@ -9,6 +9,7 @@ */ package org.eclipse.hawkbit; +import java.io.Serial; import java.io.Serializable; import lombok.Data; @@ -25,39 +26,34 @@ import org.springframework.boot.context.properties.ConfigurationProperties; @ConfigurationProperties(prefix = "hawkbit.controller") public class ControllerPollProperties implements Serializable { + @Serial private static final long serialVersionUID = 1L; /** - * Maximum polling time that can be configured system wide and by tenant in - * HH:MM:SS notation. + * Maximum polling time that can be configured system-wide and by tenant in HH:MM:SS notation. */ private String maxPollingTime = "23:59:59"; /** - * Minimum polling time that can be configured by a tenant in HH:MM:SS - * notation. + * Minimum polling time that can be configured by a tenant in HH:MM:SS notation. */ private String minPollingTime = "00:00:30"; /** - * Controller polling time that can be configured system wide and by tenant - * in HH:MM:SS notation. + * Controller polling time that can be configured system-wide and by tenant in HH:MM:SS notation. */ private String pollingTime = "00:05:00"; /** - * Controller polling overdue time that can be configured system wide and by - * tenant in HH:MM:SS notation. + * Controller polling overdue time that can be configured system-wide and by tenant in HH:MM:SS notation. */ private String pollingOverdueTime = "00:05:00"; /** - * This configuration value is used to change the polling interval so that - * controller tries to poll at least these many times between the last - * polling and before start of maintenance window. The polling interval is - * bounded by configured pollingTime and minPollingTime. The polling - * interval is modified as per following scheme: pollingTime(@time=t) = - * (maintenanceWindowStartTime - t)/maintenanceWindowPollCount. + * This configuration value is used to change the polling interval so that controller tries to poll at least these + * many times between the last polling and before start of maintenance window. The polling interval is + * bounded by configured pollingTime and minPollingTime. The polling interval is modified as per following scheme: + * pollingTime(@time=t) = (maintenanceWindowStartTime - t)/maintenanceWindowPollCount. */ private int maintenanceWindowPollCount = 3; -} +} \ No newline at end of file diff --git a/hawkbit-dmf/hawkbit-dmf-amqp/pom.xml b/hawkbit-dmf/hawkbit-dmf-amqp/pom.xml index ae3d5809b..1ef0fcedf 100644 --- a/hawkbit-dmf/hawkbit-dmf-amqp/pom.xml +++ b/hawkbit-dmf/hawkbit-dmf-amqp/pom.xml @@ -62,10 +62,6 @@ org.springframework.boot spring-boot-starter-json - - org.slf4j - slf4j-api - org.springframework.boot spring-boot-starter-logging @@ -75,7 +71,6 @@ commons-collections4 - org.eclipse.hawkbit