Skip to content

Commit

Permalink
edited MoveHierarchyNodeResult
Browse files Browse the repository at this point in the history
  • Loading branch information
soimugeo committed Jun 20, 2024
1 parent 303e5a2 commit 52bad35
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package edu.stanford.protege.webprotege.hierarchy;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.fasterxml.jackson.annotation.*;
import edu.stanford.protege.webprotege.dispatch.Result;

/**
Expand All @@ -10,6 +9,7 @@


@JsonTypeName("webprotege.hierarchies.MoveHierarchyNode")
public record MoveHierarchyNodeResult(@JsonProperty("moved") boolean moved) implements Result {
public record MoveHierarchyNodeResult(@JsonProperty("moved") boolean moved,
@JsonProperty("isDestinationRetiredClass") boolean isDestinationRetiredClass) implements Result {

}
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public void shouldSerializeAction() throws IOException {

@Test
public void shouldSerializeResult() throws IOException {
var result = new MoveHierarchyNodeResult(true);
var result = new MoveHierarchyNodeResult(true, false);

}
}

0 comments on commit 52bad35

Please sign in to comment.