diff options
author | Tatu Saloranta <tatu.saloranta@iki.fi> | 2020-06-30 17:55:24 -0700 |
---|---|---|
committer | Tatu Saloranta <tatu.saloranta@iki.fi> | 2020-06-30 17:55:24 -0700 |
commit | ea4c6668069bb106d5e1e3a48fb7cfe6894bed1d (patch) | |
tree | 469c346e16f5dd5a14950e1a38465067b59fc2d8 /src/main/java/com/fasterxml | |
parent | d8ca1c2d1c03ff1e3e64d027e84d6130ea9e45c4 (diff) | |
download | jackson-databind-ea4c6668069bb106d5e1e3a48fb7cfe6894bed1d.tar.gz |
minor stylistic change
Diffstat (limited to 'src/main/java/com/fasterxml')
-rw-r--r-- | src/main/java/com/fasterxml/jackson/databind/deser/DefaultDeserializationContext.java | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/main/java/com/fasterxml/jackson/databind/deser/DefaultDeserializationContext.java b/src/main/java/com/fasterxml/jackson/databind/deser/DefaultDeserializationContext.java index 46f59d8e6..8a66c307d 100644 --- a/src/main/java/com/fasterxml/jackson/databind/deser/DefaultDeserializationContext.java +++ b/src/main/java/com/fasterxml/jackson/databind/deser/DefaultDeserializationContext.java @@ -88,9 +88,8 @@ public abstract class DefaultDeserializationContext @Override public ReadableObjectId findObjectId(Object id, ObjectIdGenerator<?> gen, ObjectIdResolver resolverType) { - /* 02-Apr-2015, tatu: As per [databind#742] should allow 'null', similar to how - * missing id already works. - */ + // 02-Apr-2015, tatu: As per [databind#742] should allow 'null', similar to how + // missing id already works. if (id == null) { return null; } @@ -215,9 +214,8 @@ public abstract class DefaultDeserializationContext if (deserDef instanceof JsonDeserializer) { deser = (JsonDeserializer<?>) deserDef; } else { - /* Alas, there's no way to force return type of "either class - * X or Y" -- need to throw an exception after the fact - */ + // Alas, there's no way to force return type of "either class + // X or Y" -- need to throw an exception after the fact if (!(deserDef instanceof Class)) { throw new IllegalStateException("AnnotationIntrospector returned deserializer definition of type "+deserDef.getClass().getName()+"; expected type JsonDeserializer or Class<JsonDeserializer> instead"); } |