Skip to content

Commit

Permalink
fix(policy-store): [#trace-foss-970] remove superfluous code
Browse files Browse the repository at this point in the history
- JsonProperty is not needed at all (removed for consistency with the other attributes)
- removed superfluous brackets in annotation with only value

(works implicitly as with the other attributes)
  • Loading branch information
dsmf committed Jun 21, 2024
1 parent 1040cf6 commit 1c11b9b
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
package org.eclipse.tractusx.irs.edc.client.policy;

import com.fasterxml.jackson.annotation.JsonAlias;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Getter;
Expand All @@ -39,14 +38,13 @@
public class Constraint {

@Schema(implementation = String.class, example = "string")
@JsonAlias({ "odrl:leftOperand" })
@JsonAlias("odrl:leftOperand")
private String leftOperand;
@JsonAlias("odrl:operator")
@Schema
private Operator operator;
@Schema(implementation = String.class, example = "string")
@JsonAlias("odrl:rightOperand")
@JsonProperty("rightOperand")
private String rightOperand;

}

0 comments on commit 1c11b9b

Please sign in to comment.