Fix sonar findings: Removed since added (#1984)
Signed-off-by: Avgustin Marinov <Avgustin.Marinov@bosch.com>
This commit is contained in:
@@ -9,7 +9,6 @@
|
|||||||
*/
|
*/
|
||||||
package org.eclipse.hawkbit.exception;
|
package org.eclipse.hawkbit.exception;
|
||||||
|
|
||||||
import lombok.Data;
|
|
||||||
import lombok.Getter;
|
import lombok.Getter;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -800,7 +800,7 @@ public interface TargetManagement {
|
|||||||
* @throws EntityNotFoundException if tag with given name does not exist
|
* @throws EntityNotFoundException if tag with given name does not exist
|
||||||
* @deprecated since 0.6.0 - not very usable with very unclear logic
|
* @deprecated since 0.6.0 - not very usable with very unclear logic
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated(forRemoval = true, since = "0.6.0")
|
||||||
@PreAuthorize(SpringEvalExpressions.HAS_AUTH_UPDATE_TARGET)
|
@PreAuthorize(SpringEvalExpressions.HAS_AUTH_UPDATE_TARGET)
|
||||||
TargetTagAssignmentResult toggleTagAssignment(@NotEmpty Collection<String> controllerIds, @NotEmpty String tagName);
|
TargetTagAssignmentResult toggleTagAssignment(@NotEmpty Collection<String> controllerIds, @NotEmpty String tagName);
|
||||||
|
|
||||||
@@ -813,7 +813,7 @@ public interface TargetManagement {
|
|||||||
* @throws EntityNotFoundException if TAG with given ID does not exist
|
* @throws EntityNotFoundException if TAG with given ID does not exist
|
||||||
* @deprecated since 0.6.0 - use {@link #unassignTag(Collection, long)} (List, long)} instead
|
* @deprecated since 0.6.0 - use {@link #unassignTag(Collection, long)} (List, long)} instead
|
||||||
*/
|
*/
|
||||||
@Deprecated(forRemoval = true)
|
@Deprecated(forRemoval = true, since = "0.6.0")
|
||||||
@PreAuthorize(SpringEvalExpressions.HAS_AUTH_UPDATE_TARGET)
|
@PreAuthorize(SpringEvalExpressions.HAS_AUTH_UPDATE_TARGET)
|
||||||
Target unassignTag(@NotEmpty String controllerId, long targetTagId);
|
Target unassignTag(@NotEmpty String controllerId, long targetTagId);
|
||||||
}
|
}
|
||||||
@@ -18,7 +18,7 @@ import lombok.Data;
|
|||||||
*
|
*
|
||||||
* @deprecated since 0.6.0 with toggle deprecation
|
* @deprecated since 0.6.0 with toggle deprecation
|
||||||
*/
|
*/
|
||||||
@Deprecated(forRemoval = true)
|
@Deprecated(forRemoval = true, since = "0.6.0")
|
||||||
@Data
|
@Data
|
||||||
public class DistributionSetTagAssignmentResult extends AbstractAssignmentResult<DistributionSet> {
|
public class DistributionSetTagAssignmentResult extends AbstractAssignmentResult<DistributionSet> {
|
||||||
|
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ import lombok.Data;
|
|||||||
*
|
*
|
||||||
* @deprecated since 0.6.0 with deprecation of toggle assignments
|
* @deprecated since 0.6.0 with deprecation of toggle assignments
|
||||||
*/
|
*/
|
||||||
@Deprecated(forRemoval = true)
|
@Deprecated(forRemoval = true, since = "0.6.0")
|
||||||
@Data
|
@Data
|
||||||
public class TargetTagAssignmentResult extends AbstractAssignmentResult<Target> {
|
public class TargetTagAssignmentResult extends AbstractAssignmentResult<Target> {
|
||||||
|
|
||||||
|
|||||||
@@ -43,9 +43,9 @@ public final class RsqlConfigHolder {
|
|||||||
private RsqlVisitorFactory rsqlVisitorFactory;
|
private RsqlVisitorFactory rsqlVisitorFactory;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @deprecated in favour of G2 RSQL visitor.
|
* @deprecated in favour of G2 RSQL visitor. since 0.6.0
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated(forRemoval = true, since = "0.6.0")
|
||||||
@Value("${hawkbit.rsql.legacyRsqlVisitor:false}")
|
@Value("${hawkbit.rsql.legacyRsqlVisitor:false}")
|
||||||
private boolean legacyRsqlVisitor;
|
private boolean legacyRsqlVisitor;
|
||||||
|
|
||||||
|
|||||||
@@ -65,7 +65,7 @@ import org.springframework.util.ObjectUtils;
|
|||||||
* It will be kept for some time in order to keep backward compatibility and to allow for a smooth transition. Also, in case of
|
* It will be kept for some time in order to keep backward compatibility and to allow for a smooth transition. Also, in case of
|
||||||
* problems with the new implementation, this one can be used as a fallback.
|
* problems with the new implementation, this one can be used as a fallback.
|
||||||
*/
|
*/
|
||||||
@Deprecated(forRemoval = true)
|
@Deprecated(forRemoval = true, since = "0.6.0")
|
||||||
@Slf4j
|
@Slf4j
|
||||||
public class JpaQueryRsqlVisitor<A extends Enum<A> & RsqlQueryField, T> extends AbstractRSQLVisitor<A>
|
public class JpaQueryRsqlVisitor<A extends Enum<A> & RsqlQueryField, T> extends AbstractRSQLVisitor<A>
|
||||||
implements RSQLVisitor<List<Predicate>, String> {
|
implements RSQLVisitor<List<Predicate>, String> {
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ import lombok.experimental.Accessors;
|
|||||||
@ToString
|
@ToString
|
||||||
@JsonInclude(Include.NON_NULL)
|
@JsonInclude(Include.NON_NULL)
|
||||||
@JsonIgnoreProperties(ignoreUnknown = true)
|
@JsonIgnoreProperties(ignoreUnknown = true)
|
||||||
@Deprecated(forRemoval = true)
|
@Deprecated(forRemoval = true, since = "0.6.0")
|
||||||
public class MgmtAssignedDistributionSetRequestBody {
|
public class MgmtAssignedDistributionSetRequestBody {
|
||||||
|
|
||||||
@JsonProperty(value = "id", required = true)
|
@JsonProperty(value = "id", required = true)
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ import lombok.experimental.Accessors;
|
|||||||
@ToString
|
@ToString
|
||||||
@JsonInclude(Include.NON_NULL)
|
@JsonInclude(Include.NON_NULL)
|
||||||
@JsonIgnoreProperties(ignoreUnknown = true)
|
@JsonIgnoreProperties(ignoreUnknown = true)
|
||||||
@Deprecated(forRemoval = true)
|
@Deprecated(forRemoval = true, since = "0.6.0")
|
||||||
public class MgmtAssignedTargetRequestBody {
|
public class MgmtAssignedTargetRequestBody {
|
||||||
|
|
||||||
@JsonProperty(required = true)
|
@JsonProperty(required = true)
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ import org.eclipse.hawkbit.mgmt.json.model.distributionset.MgmtDistributionSet;
|
|||||||
@ToString
|
@ToString
|
||||||
@JsonInclude(Include.NON_NULL)
|
@JsonInclude(Include.NON_NULL)
|
||||||
@JsonIgnoreProperties(ignoreUnknown = true)
|
@JsonIgnoreProperties(ignoreUnknown = true)
|
||||||
@Deprecated(forRemoval = true)
|
@Deprecated(forRemoval = true, since = "0.6.0")
|
||||||
public class MgmtDistributionSetTagAssigmentResult {
|
public class MgmtDistributionSetTagAssigmentResult {
|
||||||
|
|
||||||
@JsonProperty
|
@JsonProperty
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ import org.eclipse.hawkbit.mgmt.json.model.target.MgmtTarget;
|
|||||||
@ToString
|
@ToString
|
||||||
@JsonInclude(Include.NON_NULL)
|
@JsonInclude(Include.NON_NULL)
|
||||||
@JsonIgnoreProperties(ignoreUnknown = true)
|
@JsonIgnoreProperties(ignoreUnknown = true)
|
||||||
@Deprecated(forRemoval = true)
|
@Deprecated(forRemoval = true, since = "0.6.0")
|
||||||
public class MgmtTargetTagAssigmentResult {
|
public class MgmtTargetTagAssigmentResult {
|
||||||
|
|
||||||
@JsonProperty
|
@JsonProperty
|
||||||
|
|||||||
@@ -514,7 +514,7 @@ public interface MgmtDistributionSetTagRestApi {
|
|||||||
})
|
})
|
||||||
@PostMapping(value = MgmtRestConstants.DISTRIBUTIONSET_TAG_V1_REQUEST_MAPPING
|
@PostMapping(value = MgmtRestConstants.DISTRIBUTIONSET_TAG_V1_REQUEST_MAPPING
|
||||||
+ MgmtRestConstants.DISTRIBUTIONSET_TAG_DISTRIBUTIONSETS_REQUEST_MAPPING + "/toggleTagAssignment")
|
+ MgmtRestConstants.DISTRIBUTIONSET_TAG_DISTRIBUTIONSETS_REQUEST_MAPPING + "/toggleTagAssignment")
|
||||||
@Deprecated(forRemoval = true)
|
@Deprecated(forRemoval = true, since = "0.6.0")
|
||||||
ResponseEntity<MgmtDistributionSetTagAssigmentResult> toggleTagAssignment(
|
ResponseEntity<MgmtDistributionSetTagAssigmentResult> toggleTagAssignment(
|
||||||
@PathVariable("distributionsetTagId") Long distributionsetTagId,
|
@PathVariable("distributionsetTagId") Long distributionsetTagId,
|
||||||
List<MgmtAssignedDistributionSetRequestBody> assignedDSRequestBodies);
|
List<MgmtAssignedDistributionSetRequestBody> assignedDSRequestBodies);
|
||||||
@@ -558,7 +558,7 @@ public interface MgmtDistributionSetTagRestApi {
|
|||||||
+ MgmtRestConstants.DISTRIBUTIONSET_TAG_DISTRIBUTIONSETS_REQUEST_MAPPING, consumes = {
|
+ MgmtRestConstants.DISTRIBUTIONSET_TAG_DISTRIBUTIONSETS_REQUEST_MAPPING, consumes = {
|
||||||
MediaTypes.HAL_JSON_VALUE, MediaType.APPLICATION_JSON_VALUE }, produces = {
|
MediaTypes.HAL_JSON_VALUE, MediaType.APPLICATION_JSON_VALUE }, produces = {
|
||||||
MediaTypes.HAL_JSON_VALUE, MediaType.APPLICATION_JSON_VALUE })
|
MediaTypes.HAL_JSON_VALUE, MediaType.APPLICATION_JSON_VALUE })
|
||||||
@Deprecated(forRemoval = true)
|
@Deprecated(forRemoval = true, since = "0.6.0")
|
||||||
ResponseEntity<List<MgmtDistributionSet>> assignDistributionSetsByRequestBody(
|
ResponseEntity<List<MgmtDistributionSet>> assignDistributionSetsByRequestBody(
|
||||||
@PathVariable("distributionsetTagId") Long distributionsetTagId,
|
@PathVariable("distributionsetTagId") Long distributionsetTagId,
|
||||||
List<MgmtAssignedDistributionSetRequestBody> assignedDSRequestBodies);
|
List<MgmtAssignedDistributionSetRequestBody> assignedDSRequestBodies);
|
||||||
|
|||||||
@@ -427,7 +427,7 @@ public interface MgmtTargetTagRestApi {
|
|||||||
+ MgmtRestConstants.TARGET_TAG_TARGETS_REQUEST_MAPPING + "/toggleTagAssignment", consumes = {
|
+ MgmtRestConstants.TARGET_TAG_TARGETS_REQUEST_MAPPING + "/toggleTagAssignment", consumes = {
|
||||||
MediaTypes.HAL_JSON_VALUE, MediaType.APPLICATION_JSON_VALUE }, produces = {
|
MediaTypes.HAL_JSON_VALUE, MediaType.APPLICATION_JSON_VALUE }, produces = {
|
||||||
MediaTypes.HAL_JSON_VALUE, MediaType.APPLICATION_JSON_VALUE })
|
MediaTypes.HAL_JSON_VALUE, MediaType.APPLICATION_JSON_VALUE })
|
||||||
@Deprecated(forRemoval = true)
|
@Deprecated(forRemoval = true, since = "0.6.0")
|
||||||
ResponseEntity<MgmtTargetTagAssigmentResult> toggleTagAssignment(@PathVariable("targetTagId") Long targetTagId,
|
ResponseEntity<MgmtTargetTagAssigmentResult> toggleTagAssignment(@PathVariable("targetTagId") Long targetTagId,
|
||||||
List<MgmtAssignedTargetRequestBody> assignedTargetRequestBodies);
|
List<MgmtAssignedTargetRequestBody> assignedTargetRequestBodies);
|
||||||
|
|
||||||
@@ -461,7 +461,7 @@ public interface MgmtTargetTagRestApi {
|
|||||||
+ MgmtRestConstants.TARGET_TAG_TARGETS_REQUEST_MAPPING, consumes = { MediaTypes.HAL_JSON_VALUE,
|
+ MgmtRestConstants.TARGET_TAG_TARGETS_REQUEST_MAPPING, consumes = { MediaTypes.HAL_JSON_VALUE,
|
||||||
MediaType.APPLICATION_JSON_VALUE }, produces = { MediaTypes.HAL_JSON_VALUE,
|
MediaType.APPLICATION_JSON_VALUE }, produces = { MediaTypes.HAL_JSON_VALUE,
|
||||||
MediaType.APPLICATION_JSON_VALUE })
|
MediaType.APPLICATION_JSON_VALUE })
|
||||||
@Deprecated(forRemoval = true)
|
@Deprecated(forRemoval = true, since = "0.6.0")
|
||||||
ResponseEntity<List<MgmtTarget>> assignTargetsByRequestBody(@PathVariable("targetTagId") Long targetTagId,
|
ResponseEntity<List<MgmtTarget>> assignTargetsByRequestBody(@PathVariable("targetTagId") Long targetTagId,
|
||||||
List<MgmtAssignedTargetRequestBody> assignedTargetRequestBodies);
|
List<MgmtAssignedTargetRequestBody> assignedTargetRequestBodies);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user