Skip to content

Commit

Permalink
Merge pull request #723 from gaiksaya/revert-699
Browse files Browse the repository at this point in the history
Revert Build Fix: Update Strings.toString to pass the JSON XContentType
  • Loading branch information
gaiksaya authored Feb 22, 2023
2 parents f32bfe1 + a718b19 commit 0114cf8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ import org.opensearch.common.xcontent.ObjectParser
import org.opensearch.common.xcontent.ToXContent
import org.opensearch.common.xcontent.XContentBuilder
import org.opensearch.common.xcontent.XContentParser
import org.opensearch.common.xcontent.XContentType
import org.opensearch.index.Index
import org.opensearch.persistent.PersistentTaskParams
import java.io.IOException
Expand Down Expand Up @@ -81,6 +80,6 @@ class IndexReplicationParams : PersistentTaskParams {
}

override fun toString(): String {
return Strings.toString(XContentType.JSON, this)
return Strings.toString(this)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ import org.opensearch.common.xcontent.ObjectParser
import org.opensearch.common.xcontent.ToXContent
import org.opensearch.common.xcontent.XContentBuilder
import org.opensearch.common.xcontent.XContentParser
import org.opensearch.common.xcontent.XContentType
import org.opensearch.index.shard.ShardId
import org.opensearch.persistent.PersistentTaskParams
import java.io.IOException
Expand Down Expand Up @@ -85,7 +84,7 @@ class ShardReplicationParams : PersistentTaskParams {
}

override fun toString(): String {
return Strings.toString(XContentType.JSON, this)
return Strings.toString(this)
}

class Builder {
Expand Down

0 comments on commit 0114cf8

Please sign in to comment.