Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

override def isCachable = true instead of @JsonCachable

  • Loading branch information...
commit d566fe19730625a57e67dd1f601330006891b13d 1 parent a7c006f
@imikushin imikushin authored
Showing with 32 additions and 0 deletions.
  1. +2 −0  src/main/scala/com/codahale/jerkson/deser/BigDecimalDeserializer.scala
  2. +2 −0  src/main/scala/com/codahale/jerkson/deser/BigIntDeserializer.scala
  3. +2 −0  src/main/scala/com/codahale/jerkson/deser/BitSetDeserializer.scala
  4. +2 −0  src/main/scala/com/codahale/jerkson/deser/CaseClassDeserializer.scala
  5. +2 −0  src/main/scala/com/codahale/jerkson/deser/EitherDeserializer.scala
  6. +2 −0  src/main/scala/com/codahale/jerkson/deser/ImmutableMapDeserializer.scala
  7. +2 −0  src/main/scala/com/codahale/jerkson/deser/IntMapDeserializer.scala
  8. +2 −0  src/main/scala/com/codahale/jerkson/deser/IteratorDeserializer.scala
  9. +2 −0  src/main/scala/com/codahale/jerkson/deser/JValueDeserializer.scala
  10. +2 −0  src/main/scala/com/codahale/jerkson/deser/LongMapDeserializer.scala
  11. +2 −0  src/main/scala/com/codahale/jerkson/deser/MutableLinkedHashMapDeserializer.scala
  12. +2 −0  src/main/scala/com/codahale/jerkson/deser/MutableMapDeserializer.scala
  13. +2 −0  src/main/scala/com/codahale/jerkson/deser/OptionDeserializer.scala
  14. +2 −0  src/main/scala/com/codahale/jerkson/deser/RangeDeserializer.scala
  15. +2 −0  src/main/scala/com/codahale/jerkson/deser/SeqDeserializer.scala
  16. +2 −0  src/main/scala/com/codahale/jerkson/deser/StringBuilderDeserializer.scala
View
2  src/main/scala/com/codahale/jerkson/deser/BigDecimalDeserializer.scala
@@ -16,4 +16,6 @@ class BigDecimalDeserializer extends JsonDeserializer[Object] {
throw ctxt.mappingException(classOf[BigDecimal])
}
}
+
+ override def isCachable = true
}
View
2  src/main/scala/com/codahale/jerkson/deser/BigIntDeserializer.scala
@@ -16,4 +16,6 @@ class BigIntDeserializer extends JsonDeserializer[Object] {
throw ctxt.mappingException(classOf[BigInt])
}
}
+
+ override def isCachable = true
}
View
2  src/main/scala/com/codahale/jerkson/deser/BitSetDeserializer.scala
@@ -21,4 +21,6 @@ class BitSetDeserializer[Coll <: BitSet with BitSetLike[Coll]](factory: BitSetFa
builder.result()
}
+
+ override def isCachable = true
}
View
2  src/main/scala/com/codahale/jerkson/deser/CaseClassDeserializer.scala
@@ -80,4 +80,6 @@ class CaseClassDeserializer(config: DeserializationConfig,
}
"Invalid JSON. Needed %s, but found %s.".format(names, existing)
}
+
+ override def isCachable = true
}
View
2  src/main/scala/com/codahale/jerkson/deser/EitherDeserializer.scala
@@ -16,4 +16,6 @@ class EitherDeserializer(config: DeserializationConfig,
case _ => Right(tp.getCodec.readValue[Object](tp, javaType.containedType(1)))
}
}
+
+ override def isCachable = true
}
View
2  src/main/scala/com/codahale/jerkson/deser/ImmutableMapDeserializer.scala
@@ -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
}
View
2  src/main/scala/com/codahale/jerkson/deser/IntMapDeserializer.scala
@@ -38,4 +38,6 @@ class IntMapDeserializer(valueType: JavaType) extends JsonDeserializer[Object] w
def resolve(ctxt: DeserializationContext) {
valueDeserializer = ctxt.findRootValueDeserializer(valueType)
}
+
+ override def isCachable = true
}
View
2  src/main/scala/com/codahale/jerkson/deser/IteratorDeserializer.scala
@@ -25,4 +25,6 @@ class IteratorDeserializer(elementType: JavaType) extends JsonDeserializer[Objec
def resolve(ctxt: DeserializationContext) {
elementDeserializer = ctxt.findRootValueDeserializer(elementType)
}
+
+ override def isCachable = true
}
View
2  src/main/scala/com/codahale/jerkson/deser/JValueDeserializer.scala
@@ -45,4 +45,6 @@ class JValueDeserializer(factory: TypeFactory, klass: Class[_]) extends JsonDese
value
}
+
+ override def isCachable = true
}
View
2  src/main/scala/com/codahale/jerkson/deser/LongMapDeserializer.scala
@@ -37,4 +37,6 @@ class LongMapDeserializer(valueType: JavaType) extends JsonDeserializer[Object]
def resolve(ctxt: DeserializationContext) {
valueDeserializer = ctxt.findRootValueDeserializer(valueType)
}
+
+ override def isCachable = true
}
View
2  src/main/scala/com/codahale/jerkson/deser/MutableLinkedHashMapDeserializer.scala
@@ -29,4 +29,6 @@ class MutableLinkedHashMapDeserializer(valueType: JavaType) extends JsonDeserial
def resolve(ctxt: DeserializationContext) {
valueDeserializer = ctxt.findRootValueDeserializer(valueType)
}
+
+ override def isCachable = true
}
View
2  src/main/scala/com/codahale/jerkson/deser/MutableMapDeserializer.scala
@@ -34,4 +34,6 @@ class MutableMapDeserializer(valueType: JavaType) extends JsonDeserializer[Objec
def resolve(ctxt: DeserializationContext) {
valueDeserializer = ctxt.findRootValueDeserializer(valueType)
}
+
+ override def isCachable = true
}
View
2  src/main/scala/com/codahale/jerkson/deser/OptionDeserializer.scala
@@ -25,4 +25,6 @@ class OptionDeserializer(elementType: JavaType)
def resolve(ctxt: DeserializationContext) {
elementDeserializer = ctxt.findRootValueDeserializer(elementType)
}
+
+ override def isCachable = true
}
View
2  src/main/scala/com/codahale/jerkson/deser/RangeDeserializer.scala
@@ -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
}
View
2  src/main/scala/com/codahale/jerkson/deser/SeqDeserializer.scala
@@ -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
}
View
2  src/main/scala/com/codahale/jerkson/deser/StringBuilderDeserializer.scala
@@ -11,4 +11,6 @@ class StringBuilderDeserializer extends JsonDeserializer[Object] {
new StringBuilder(jp.getText)
}
+
+ override def isCachable = true
}
Please sign in to comment.
Something went wrong with that request. Please try again.