Skip to content

Commit

Permalink
further minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
cowtowncoder committed Oct 21, 2015
1 parent f73cd92 commit b8b7fc3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public JsonDeserializer<?> createContextual(DeserializationContext ctxt, BeanPro
if (typeDeser != null) {
typeDeser = typeDeser.forProperty(property);
}
if (deser == _valueDeserializer && typeDeser == _valueTypeDeserializer) {
if ((deser == _valueDeserializer) && (typeDeser == _valueTypeDeserializer)) {
return this;
}
return withResolved(typeDeser, deser);
Expand All @@ -84,8 +84,8 @@ public AtomicReference<?> deserialize(JsonParser jp, DeserializationContext ctxt
}

@Override
public Object[] deserializeWithType(JsonParser jp, DeserializationContext ctxt,
public Object deserializeWithType(JsonParser jp, DeserializationContext ctxt,
TypeDeserializer typeDeserializer) throws IOException {
return (Object[]) typeDeserializer.deserializeTypedFromAny(jp, ctxt);
return typeDeserializer.deserializeTypedFromAny(jp, ctxt);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ protected JavaType _narrow(Class<?> subclass)
public JavaType narrowContentsBy(Class<?> contentClass)
{
// Can do a quick check first:
if (contentClass == _referencedType.getRawClass()) {
if (_referencedType.hasRawClass(contentClass)) {
return this;
}
return new ReferenceType(_class, _bindings,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
public class TestConvertingSerializer357
extends com.fasterxml.jackson.databind.BaseMapTest
{
// [Issue#357]
// [databind#357]
static class Value { }

static class ListWrapper {
Expand All @@ -29,7 +29,7 @@ public List<String> convert(Value value) {
/**********************************************************
*/

// [Issue#357]
// [databind#357]
public void testConverterForList357() throws Exception {
String json = objectWriter().writeValueAsString(new ListWrapper());
assertEquals("{\"list\":[[\"Hello world!\"]]}", json);
Expand Down

0 comments on commit b8b7fc3

Please sign in to comment.