Skip to content

Commit

Permalink
Merge pull request #18 from socrata/liveness
Browse files Browse the repository at this point in the history
Pair of bugfixes
  • Loading branch information
znep committed Feb 24, 2015
2 parents e81e417 + 59d192b commit e3fb7ac
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Expand Up @@ -174,7 +174,10 @@ final class RequestBuilder private (val host: String,
def json(contents: Iterator[JsonEvent]) =
new JsonHttpRequest(this.finish("POST"), contents)

def jsonValue[T : JsonEncode](contents: JValue) =
@deprecated(message = "Use \"jsonBody\" instead", since = "3.1.1")
def jsonValue[T : JsonEncode](contents: JValue) = jsonBody(contents)

def jsonBody[T : JsonEncode](contents: T) =
new JsonHttpRequest(this.finish("POST"), JValueEventIterator(JsonEncode.toJValue(contents)))

/**
Expand Down
Expand Up @@ -8,7 +8,7 @@ import org.codehaus.jackson.map.annotate.{JsonDeserialize, JsonSerialize}
/** A class for storing in a curator service advertisement's payload field.
* All fields of this class must be (de)serializable by Jackson. */
class AuxiliaryData(var livenessCheckInfo: Option[LivenessCheckInfo], var json: JObject) {
def this(livenessCheckInfo: Option[LivenessCheckInfo]) = this(None, JObject.canonicalEmpty)
def this(livenessCheckInfo: Option[LivenessCheckInfo]) = this(livenessCheckInfo, JObject.canonicalEmpty)

@deprecated(message = "This constructor is for Jackson's use, not yours", since = "forever")
def this() = this(None, JObject.canonicalEmpty)
Expand Down

0 comments on commit e3fb7ac

Please sign in to comment.