Permalink
Browse files

override def isCachable = true instead of @JsonCachable

  • Loading branch information...
1 parent a7c006f commit d566fe19730625a57e67dd1f601330006891b13d @imikushin imikushin committed May 14, 2012
@@ -16,4 +16,6 @@ class BigDecimalDeserializer extends JsonDeserializer[Object] {
throw ctxt.mappingException(classOf[BigDecimal])
}
}
+
+ override def isCachable = true
}
@@ -16,4 +16,6 @@ class BigIntDeserializer extends JsonDeserializer[Object] {
throw ctxt.mappingException(classOf[BigInt])
}
}
+
+ override def isCachable = true
}
@@ -21,4 +21,6 @@ class BitSetDeserializer[Coll <: BitSet with BitSetLike[Coll]](factory: BitSetFa
builder.result()
}
+
+ override def isCachable = true
}
@@ -80,4 +80,6 @@ class CaseClassDeserializer(config: DeserializationConfig,
}
"Invalid JSON. Needed %s, but found %s.".format(names, existing)
}
+
+ override def isCachable = true
}
@@ -16,4 +16,6 @@ class EitherDeserializer(config: DeserializationConfig,
case _ => Right(tp.getCodec.readValue[Object](tp, javaType.containedType(1)))
}
}
+
+ override def isCachable = true
}
@@ -38,4 +38,6 @@ class ImmutableMapDeserializer[CC[A, B] <: Map[A, B] with MapLike[A, B, CC[A, B]
def resolve(ctxt: DeserializationContext) {
valueDeserializer = ctxt.findRootValueDeserializer(valueType)
}
+
+ override def isCachable = true
}
@@ -38,4 +38,6 @@ class IntMapDeserializer(valueType: JavaType) extends JsonDeserializer[Object] w
def resolve(ctxt: DeserializationContext) {
valueDeserializer = ctxt.findRootValueDeserializer(valueType)
}
+
+ override def isCachable = true
}
@@ -25,4 +25,6 @@ class IteratorDeserializer(elementType: JavaType) extends JsonDeserializer[Objec
def resolve(ctxt: DeserializationContext) {
elementDeserializer = ctxt.findRootValueDeserializer(elementType)
}
+
+ override def isCachable = true
}
@@ -45,4 +45,6 @@ class JValueDeserializer(factory: TypeFactory, klass: Class[_]) extends JsonDese
value
}
+
+ override def isCachable = true
}
@@ -37,4 +37,6 @@ class LongMapDeserializer(valueType: JavaType) extends JsonDeserializer[Object]
def resolve(ctxt: DeserializationContext) {
valueDeserializer = ctxt.findRootValueDeserializer(valueType)
}
+
+ override def isCachable = true
}
@@ -29,4 +29,6 @@ class MutableLinkedHashMapDeserializer(valueType: JavaType) extends JsonDeserial
def resolve(ctxt: DeserializationContext) {
valueDeserializer = ctxt.findRootValueDeserializer(valueType)
}
+
+ override def isCachable = true
}
@@ -34,4 +34,6 @@ class MutableMapDeserializer(valueType: JavaType) extends JsonDeserializer[Objec
def resolve(ctxt: DeserializationContext) {
valueDeserializer = ctxt.findRootValueDeserializer(valueType)
}
+
+ override def isCachable = true
}
@@ -25,4 +25,6 @@ class OptionDeserializer(elementType: JavaType)
def resolve(ctxt: DeserializationContext) {
elementDeserializer = ctxt.findRootValueDeserializer(elementType)
}
+
+ override def isCachable = true
}
@@ -52,4 +52,6 @@ class RangeDeserializer extends JsonDeserializer[Object] {
}
"Invalid JSON. Needed [start, end, <step>, <inclusive>], but found %s.".format(existing)
}
+
+ override def isCachable = true
}
@@ -29,4 +29,6 @@ class SeqDeserializer[+CC[X] <: Traversable[X]](companion: GenericCompanion[CC],
def resolve(ctxt: DeserializationContext) {
elementDeserializer = ctxt.findRootValueDeserializer(elementType)
}
+
+ override def isCachable = true
}
@@ -11,4 +11,6 @@ class StringBuilderDeserializer extends JsonDeserializer[Object] {
new StringBuilder(jp.getText)
}
+
+ override def isCachable = true
}

0 comments on commit d566fe1

Please sign in to comment.