Skip to content

Commit

Permalink
Update Prohibition.java
Browse files Browse the repository at this point in the history
  • Loading branch information
algattik committed May 16, 2022
1 parent 911b0b1 commit 3019512
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,11 @@

package org.eclipse.dataspaceconnector.policy.model;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;

import static java.util.stream.Collectors.joining;

/**
* Disallows an action if its constraints are satisfied.
*/
@JsonDeserialize(builder = Prohibition.Builder.class)
public class Prohibition extends Rule {

@Override
Expand All @@ -34,7 +31,7 @@ public <R> R accept(Visitor<R> visitor) {
public String toString() {
return "Prohibition constraints: [" + getConstraints().stream().map(Object::toString).collect(joining(",")) + "]";
}

/**
* Returns a copy of this prohibition with the specified target.
*
Expand Down

0 comments on commit 3019512

Please sign in to comment.