Skip to content

Commit

Permalink
Clean up changes around ValidationResult
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Nied <[email protected]>
  • Loading branch information
peternied committed Mar 7, 2024
1 parent f92c510 commit 30d6bfc
Showing 1 changed file with 0 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,11 @@
import java.util.Objects;
import java.util.stream.Collectors;

import com.fasterxml.jackson.databind.JsonNode;

import org.opensearch.common.CheckedBiConsumer;
import org.opensearch.common.CheckedConsumer;
import org.opensearch.common.CheckedFunction;
import org.opensearch.common.collect.Tuple;
import org.opensearch.core.rest.RestStatus;
import org.opensearch.core.xcontent.ToXContent;
import org.opensearch.security.securityconf.impl.CType;

public class ValidationResult<C> {

Expand Down Expand Up @@ -104,13 +100,4 @@ public boolean isValid() {
public ToXContent errorMessage() {
return errorMessage;
}

public C getContent() {
return content;
}

public ValidationResult<List<Tuple<CType, JsonNode>>> map(Object mapper) {
// TODO Auto-generated method stub
throw new UnsupportedOperationException("Unimplemented method 'map'");
}
}

0 comments on commit 30d6bfc

Please sign in to comment.