Sonar Fixes (#2229)

Signed-off-by: Avgustin Marinov <Avgustin.Marinov@bosch.com>
This commit is contained in:
Avgustin Marinov
2025-01-24 10:08:31 +02:00
committed by GitHub
parent 99e545b75f
commit e6c8215d05
10 changed files with 133 additions and 110 deletions

View File

@@ -59,6 +59,7 @@ import org.springframework.web.bind.annotation.RestController;
*/
@Slf4j
@RestController
@SuppressWarnings("java:S5738") // will be removed at some point
public class DeprecatedMgmtResource implements DeprecatedMgmtRestApi {
// logger that logs usage of deprecated API

View File

@@ -44,6 +44,7 @@ import org.springframework.web.bind.annotation.RequestBody;
@Deprecated(forRemoval = true, since = "0.6.0")
@Tag(name = "Deprecated operations", description = "Deprecated REST operations.",
extensions = @Extension(name = OpenApiConfiguration.X_HAWKBIT, properties = @ExtensionProperty(name = "order", value = "2147483647")))
@SuppressWarnings("java:S1133") // will be removed at some point
public interface DeprecatedMgmtRestApi {
/**

View File

@@ -27,6 +27,7 @@ import org.eclipse.hawkbit.repository.model.DistributionSetTag;
@Getter
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
@SuppressWarnings("java:S1133") // will be removed at some point
public class DistributionSetTagAssignmentResult extends AbstractAssignmentResult<DistributionSet> {
private final DistributionSetTag distributionSetTag;

View File

@@ -27,6 +27,7 @@ import org.eclipse.hawkbit.repository.model.TargetTag;
@Getter
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
@SuppressWarnings("java:S1133") // will be removed at some point
public class TargetTagAssignmentResult extends AbstractAssignmentResult<Target> {
private final TargetTag targetTag;