id
int64
1
889
project_id
stringclasses
17 values
bug_id
stringclasses
163 values
class
dict
method
dict
tests
listlengths
1
84
401
JacksonCore
17
{ "fields": [ { "modifier": "", "original_string": "private final static byte BYTE_u = (byte) 'u';", "type": "byte", "var_name": "BYTE_u" }, { "modifier": "", "original_string": "private final static byte BYTE_0 = (byte) '0';", "type": "byte", "var_name": "B...
{ "body": "@Override\n public void writeRaw(String text, int offset, int len) throws IOException\n {\n final char[] buf = _charBuffer;\n\n // minor optimization: see if we can just get and copy\n if (len <= buf.length) {\n text.getChars(offset, offset+len, buf, 0);\n _...
[ { "covered_lines": 4, "line_coverage": 0.1818, "name": "com.fasterxml.jackson.core.json.RawValueWithSurrogatesTest::testRawWithSurrogatesString", "total_lines": 22 } ]
402
JacksonCore
19
{ "fields": [ { "modifier": "", "original_string": "protected final static int[] _icLatin1 = CharTypes.getInputCodeLatin1();", "type": "int[]", "var_name": "_icLatin1" }, { "modifier": "", "original_string": "protected Reader _reader;", "type": "Reader", "va...
{ "body": "private final JsonToken _parseNumber2(boolean neg, int startPtr) throws IOException\n {\n _inputPtr = neg ? (startPtr+1) : startPtr;\n char[] outBuf = _textBuffer.emptyAndGetCurrentSegment();\n int outPtr = 0;\n\n // Need to prepend sign?\n if (neg) {\n outB...
[ { "covered_lines": 18, "line_coverage": 0.25, "name": "com.fasterxml.jackson.core.json.TestNumericValues::testLongerFloatingPoint", "total_lines": 72 } ]
403
JacksonCore
20
{ "fields": [ { "modifier": "", "original_string": "protected PrettyPrinter _cfgPrettyPrinter;", "type": "PrettyPrinter", "var_name": "_cfgPrettyPrinter" } ], "file": "src/main/java/com/fasterxml/jackson/core/JsonGenerator.java", "identifier": "JsonGenerator", "interfaces": "Cl...
{ "body": "public void writeEmbeddedObject(Object object) throws IOException {\n // 01-Sep-2016, tatu: As per [core#318], handle small number of cases\n if (object == null) {\n writeNull();\n return;\n }\n if (object instanceof byte[]) {\n writeBinary((byte...
[ { "covered_lines": 1, "line_coverage": 1, "name": "com.fasterxml.jackson.core.base64.Base64GenerationTest::testBinaryAsEmbeddedObject", "total_lines": 1 }, { "covered_lines": 1, "line_coverage": 1, "name": "com.fasterxml.jackson.core.main.TestGeneratorMisc::testAsEmbedded", "tota...
404
JacksonCore
21
{ "fields": [ { "modifier": "", "original_string": "protected TokenFilter rootFilter;", "type": "TokenFilter", "var_name": "rootFilter" }, { "modifier": "", "original_string": "protected boolean _allowMultipleMatches;", "type": "boolean", "var_name": "_allow...
{ "body": "@Override\n public JsonToken nextToken() throws IOException\n {\n // 23-May-2017, tatu: To be honest, code here is rather hairy and I don't like all\n // conditionals; and it seems odd to return `null` but NOT considering input\n // as closed... would love a rewrite to simp...
[ { "covered_lines": 52, "line_coverage": 0.4333, "name": "com.fasterxml.jackson.core.filter.TokenVerifyingParserFiltering330Test::testTokensSingleMatchWithPath", "total_lines": 120 }, { "covered_lines": 52, "line_coverage": 0.4333, "name": "com.fasterxml.jackson.core.filter.TokenVerif...
405
JacksonCore
22
{ "fields": [ { "modifier": "", "original_string": "protected TokenFilter rootFilter;", "type": "TokenFilter", "var_name": "rootFilter" }, { "modifier": "", "original_string": "protected boolean _allowMultipleMatches;", "type": "boolean", "var_name": "_allow...
{ "body": "protected final JsonToken _nextToken2() throws IOException\n {\n main_loop:\n while (true) {\n JsonToken t = delegate.nextToken();\n if (t == null) { // is this even legal?\n _currToken = t;\n return t;\n }\n TokenFi...
[ { "covered_lines": 17, "line_coverage": 0.1828, "name": "com.fasterxml.jackson.core.filter.BasicParserFilteringTest::testSingleMatchFilteringWithPath", "total_lines": 93 }, { "covered_lines": 16, "line_coverage": 0.172, "name": "com.fasterxml.jackson.core.filter.BasicParserFilteringT...
406
JacksonCore
22
{ "fields": [ { "modifier": "", "original_string": "protected TokenFilter rootFilter;", "type": "TokenFilter", "var_name": "rootFilter" }, { "modifier": "", "original_string": "protected boolean _allowMultipleMatches;", "type": "boolean", "var_name": "_allow...
{ "body": "protected final JsonToken _nextTokenWithBuffering(final TokenFilterContext buffRoot)\n throws IOException\n {\n main_loop:\n while (true) {\n JsonToken t = delegate.nextToken();\n if (t == null) { // is this even legal?\n return t;\n }...
[ { "covered_lines": 49, "line_coverage": 0.6712, "name": "com.fasterxml.jackson.core.filter.BasicParserFilteringTest::testSingleMatchFilteringWithPath", "total_lines": 73 }, { "covered_lines": 49, "line_coverage": 0.6712, "name": "com.fasterxml.jackson.core.filter.BasicParserFiltering...
407
JacksonCore
22
{ "fields": [ { "modifier": "", "original_string": "protected TokenFilter rootFilter;", "type": "TokenFilter", "var_name": "rootFilter" }, { "modifier": "", "original_string": "protected boolean _allowMultipleMatches;", "type": "boolean", "var_name": "_allow...
{ "body": "@Override\n public JsonToken nextToken() throws IOException\n {\n // 23-May-2017, tatu: To be honest, code here is rather hairy and I don't like all\n // conditionals; and it seems odd to return `null` but NOT considering input\n // as closed... would love a rewrite to simp...
[ { "covered_lines": 46, "line_coverage": 0.3966, "name": "com.fasterxml.jackson.core.filter.BasicParserFilteringTest::testSingleMatchFilteringWithPath", "total_lines": 116 }, { "covered_lines": 64, "line_coverage": 0.5517, "name": "com.fasterxml.jackson.core.filter.BasicParserFilterin...
408
JacksonCore
24
{ "fields": [ { "modifier": "", "original_string": "final protected IOContext _ioContext;", "type": "IOContext", "var_name": "_ioContext" }, { "modifier": "", "original_string": "protected boolean _closed;", "type": "boolean", "var_name": "_closed" }, ...
{ "body": "protected void _reportTooLongIntegral(int expType, String rawNum) throws IOException\n {\n if (expType == NR_INT) {\n reportOverflowInt(rawNum);\n } else {\n reportOverflowLong(rawNum);\n }\n }", "class_method_signature": "ParserBase._reportTooLongIntegral...
[ { "covered_lines": 0, "line_coverage": 0, "name": "com.fasterxml.jackson.core.json.async.AsyncNumberCoercionTest::testToLongFailing", "total_lines": 4 }, { "covered_lines": 0, "line_coverage": 0, "name": "com.fasterxml.jackson.core.json.async.AsyncNumberCoercionTest::testToIntFailing...
409
JacksonCore
24
{ "fields": [ { "modifier": "", "original_string": "final protected IOContext _ioContext;", "type": "IOContext", "var_name": "_ioContext" }, { "modifier": "", "original_string": "protected boolean _closed;", "type": "boolean", "var_name": "_closed" }, ...
{ "body": "protected void convertNumberToInt() throws IOException\n {\n // First, converting from long ought to be easy\n if ((_numTypesValid & NR_LONG) != 0) {\n // Let's verify it's lossless conversion by simple roundtrip\n int result = (int) _numberLong;\n if (((lo...
[ { "covered_lines": 0, "line_coverage": 0, "name": "com.fasterxml.jackson.core.json.async.AsyncNumberCoercionTest::testToLongFailing", "total_lines": 22 }, { "covered_lines": 4, "line_coverage": 0.1818, "name": "com.fasterxml.jackson.core.json.async.AsyncNumberCoercionTest::testToIntF...
410
JacksonCore
24
{ "fields": [ { "modifier": "", "original_string": "protected final static int INT_TAB = '\\t';", "type": "int", "var_name": "INT_TAB" }, { "modifier": "", "original_string": "protected final static int INT_LF = '\\n';", "type": "int", "var_name": "INT_LF" ...
{ "body": "protected void reportOverflowLong(String numDesc) throws IOException {\n reportOverflowLong(numDesc, JsonToken.VALUE_NUMBER_INT);\n }", "class_method_signature": "ParserMinimalBase.reportOverflowLong(String numDesc)", "constructor": false, "full_signature": "protected void reportOverflowLon...
[ { "covered_lines": 2, "line_coverage": 0.6667, "name": "com.fasterxml.jackson.core.json.async.AsyncNumberCoercionTest::testToLongFailing", "total_lines": 3 }, { "covered_lines": 0, "line_coverage": 0, "name": "com.fasterxml.jackson.core.json.async.AsyncNumberCoercionTest::testToIntFa...
411
JacksonCore
24
{ "fields": [ { "modifier": "", "original_string": "protected final static int INT_TAB = '\\t';", "type": "int", "var_name": "INT_TAB" }, { "modifier": "", "original_string": "protected final static int INT_LF = '\\n';", "type": "int", "var_name": "INT_LF" ...
{ "body": "protected void reportOverflowLong(String numDesc, JsonToken inputType) throws IOException {\n _reportInputCoercion(String.format(\"Numeric value (%s) out of range of long (%d - %s)\",\n _longIntegerDesc(numDesc), Long.MIN_VALUE, Long.MAX_VALUE),\n inputType, Long.TYPE);...
[ { "covered_lines": 2, "line_coverage": 0.6667, "name": "com.fasterxml.jackson.core.json.async.AsyncNumberCoercionTest::testToLongFailing", "total_lines": 3 }, { "covered_lines": 0, "line_coverage": 0, "name": "com.fasterxml.jackson.core.json.async.AsyncNumberCoercionTest::testToIntFa...
412
JacksonCore
25
{ "fields": [ { "modifier": "", "original_string": "protected final static int FEAT_MASK_TRAILING_COMMA = Feature.ALLOW_TRAILING_COMMA.getMask();", "type": "int", "var_name": "FEAT_MASK_TRAILING_COMMA" }, { "modifier": "", "original_string": "protected final static int[...
{ "body": "private String _handleOddName2(int startPtr, int hash, int[] codes) throws IOException\n {\n _textBuffer.resetWithShared(_inputBuffer, startPtr, (_inputPtr - startPtr));\n char[] outBuf = _textBuffer.getCurrentSegment();\n int outPtr = _textBuffer.getCurrentSegmentSize();\n f...
[ { "covered_lines": 10, "line_coverage": 0.3704, "name": "com.fasterxml.jackson.core.read.NonStandardUnquotedNamesTest::testUnquotedIssue510", "total_lines": 27 } ]
413
JacksonCore
26
{ "fields": [ { "modifier": "@SuppressWarnings(\"deprecation\")", "original_string": "@SuppressWarnings(\"deprecation\")\n private final static int FEAT_MASK_TRAILING_COMMA = Feature.ALLOW_TRAILING_COMMA.getMask();", "type": "int", "var_name": "FEAT_MASK_TRAILING_COMMA" }, { ...
{ "body": "@Override\n public void feedInput(byte[] buf, int start, int end) throws IOException\n {\n // Must not have remaining input\n if (_inputPtr < _inputEnd) {\n _reportError(\"Still have %d undecoded bytes, should not call 'feedInput'\", _inputEnd - _inputPtr);\n }\n ...
[ { "covered_lines": 10, "line_coverage": 0.7692, "name": "com.fasterxml.jackson.core.json.async.AsyncLocationTest::testLocationOffsets", "total_lines": 13 } ]
414
JacksonDatabind
1
{ "fields": [ { "modifier": "", "original_string": "public final static Object MARKER_FOR_EMPTY = new Object();", "type": "Object", "var_name": "MARKER_FOR_EMPTY" }, { "modifier": "", "original_string": "protected final AnnotatedMember _member;", "type": "Annotate...
{ "body": "public void serializeAsColumn(Object bean, JsonGenerator jgen, SerializerProvider prov)\n throws Exception\n {\n Object value = get(bean);\n if (value == null) { // nulls need specialized handling\n if (_nullSerializer != null) {\n _nullSerializer.serialize...
[ { "covered_lines": 11, "line_coverage": 0.4231, "name": "com.fasterxml.jackson.databind.struct.TestPOJOAsArray::testNullColumn", "total_lines": 26 } ]
415
JacksonDatabind
2
{ "fields": [ { "modifier": "", "original_string": "protected final static int DEFAULT_GENERATOR_FEATURES = JsonGenerator.Feature.collectDefaults();", "type": "int", "var_name": "DEFAULT_GENERATOR_FEATURES" }, { "modifier": "", "original_string": "protected ObjectCodec ...
{ "body": "@Override\n public void writeObject(Object value) throws IOException\n {\n if (value == null) {\n writeNull();\n return;\n }\n Class<?> raw = value.getClass();\n if (raw == byte[].class) {\n _append(JsonToken.VALUE_EMBEDDED_OBJECT, value);\...
[ { "covered_lines": 2, "line_coverage": 1, "name": "com.fasterxml.jackson.databind.node.TestConversions::testConversionOfPojos", "total_lines": 2 } ]
416
JacksonDatabind
3
{ "fields": [ { "modifier": "", "original_string": "private static final long serialVersionUID = -7589512013334920693L;", "type": "long", "var_name": "serialVersionUID" }, { "modifier": "", "original_string": "public final static StringArrayDeserializer instance = new S...
{ "body": "@Override\n public String[] deserialize(JsonParser jp, DeserializationContext ctxt) throws IOException\n {\n // Ok: must point to START_ARRAY (or equivalent)\n if (!jp.isExpectedStartArrayToken()) {\n return handleNonArray(jp, ctxt);\n }\n if (_elementDeserializ...
[ { "covered_lines": 16, "line_coverage": 0.7619, "name": "com.fasterxml.jackson.databind.deser.TestArrayDeserialization::testStringArray", "total_lines": 21 } ]
417
JacksonDatabind
4
{ "fields": [ { "modifier": "", "original_string": "private static final long serialVersionUID = -7589512013334920693L;", "type": "long", "var_name": "serialVersionUID" }, { "modifier": "", "original_string": "public final static StringArrayDeserializer instance = new S...
{ "body": "@Override\n public String[] deserialize(JsonParser jp, DeserializationContext ctxt) throws IOException\n {\n // Ok: must point to START_ARRAY (or equivalent)\n if (!jp.isExpectedStartArrayToken()) {\n return handleNonArray(jp, ctxt);\n }\n if (_elementDeserializ...
[ { "covered_lines": 13, "line_coverage": 0.619, "name": "com.fasterxml.jackson.databind.deser.TestCollectionDeserialization::testArrayIndexForExceptions", "total_lines": 21 } ]
418
JacksonDatabind
5
{ "fields": [ { "modifier": "", "original_string": "private final static AnnotationMap[] NO_ANNOTATION_MAPS = new AnnotationMap[0];", "type": "AnnotationMap[]", "var_name": "NO_ANNOTATION_MAPS" }, { "modifier": "", "original_string": "final protected Class<?> _class;", ...
{ "body": "protected void _addMethodMixIns(Class<?> targetClass, AnnotatedMethodMap methods,\n Class<?> mixInCls, AnnotatedMethodMap mixIns)\n {\n List<Class<?>> parents = new ArrayList<Class<?>>();\n parents.add(mixInCls);\n ClassUtil.findSuperTypes(mixInCls, targetClass, parents);...
[ { "covered_lines": 11, "line_coverage": 0.8462, "name": "com.fasterxml.jackson.databind.introspect.TestMixinMerging::testDisappearingMixins515", "total_lines": 13 } ]
419
JacksonDatabind
6
{ "fields": [ { "modifier": "", "original_string": "protected final static String DATE_FORMAT_STR_ISO8601 = \"yyyy-MM-dd'T'HH:mm:ss.SSSZ\";", "type": "String", "var_name": "DATE_FORMAT_STR_ISO8601" }, { "modifier": "", "original_string": "protected final static String D...
{ "body": "protected Date parseAsISO8601(String dateStr, ParsePosition pos)\n {\n /* 21-May-2009, tatu: DateFormat has very strict handling of\n * timezone modifiers for ISO-8601. So we need to do some scrubbing.\n */\n\n /* First: do we have \"zulu\" format ('Z' == \"GMT\")? If yes,...
[ { "covered_lines": 21, "line_coverage": 0.5, "name": "com.fasterxml.jackson.databind.deser.TestDateDeserialization::testISO8601MissingSeconds", "total_lines": 42 }, { "covered_lines": 21, "line_coverage": 0.5, "name": "com.fasterxml.jackson.databind.deser.TestDateDeserialization::tes...
420
JacksonDatabind
7
{ "fields": [ { "modifier": "", "original_string": "protected final static int DEFAULT_GENERATOR_FEATURES = JsonGenerator.Feature.collectDefaults();", "type": "int", "var_name": "DEFAULT_GENERATOR_FEATURES" }, { "modifier": "", "original_string": "protected ObjectCodec ...
{ "body": "public TokenBuffer deserialize(JsonParser jp, DeserializationContext ctxt) throws IOException\n {\n if (jp.getCurrentTokenId() != JsonToken.FIELD_NAME.id()) {\n copyCurrentStructure(jp);\n return this;\n }\n /* 28-Oct-2014, tatu: As per #592, need to support a ...
[ { "covered_lines": 2, "line_coverage": 1, "name": "com.fasterxml.jackson.databind.creators.TestCreatorsDelegating::testDelegateWithTokenBuffer", "total_lines": 2 } ]
421
JacksonDatabind
8
{ "fields": [ { "modifier": "", "original_string": "protected final static int C_DEFAULT = 0;", "type": "int", "var_name": "C_DEFAULT" }, { "modifier": "", "original_string": "protected final static int C_STRING = 1;", "type": "int", "var_name": "C_STRING" ...
{ "body": "protected void verifyNonDup(AnnotatedWithParams newOne, int typeIndex, boolean explicit)\n {\n final int mask = (1 << typeIndex);\n _hasNonDefaultCreator = true;\n AnnotatedWithParams oldOne = _creators[typeIndex];\n // already had an explicitly marked one?\n if (oldOn...
[ { "covered_lines": 10, "line_coverage": 0.7692, "name": "com.fasterxml.jackson.databind.deser.TestJdkTypes::testStringBuilder", "total_lines": 13 } ]
422
JacksonDatabind
9
{ "fields": [], "file": "src/main/java/com/fasterxml/jackson/databind/ser/std/StdKeySerializer.java", "identifier": "StdKeySerializer", "interfaces": "", "superclass": "StdSerializer<Object>" }
{ "body": "@Override\n public void serialize(Object value, JsonGenerator jgen, SerializerProvider provider) throws IOException {\n String str;\n Class<?> cls = value.getClass();\n \n if (cls == String.class) {\n str = (String) value;\n } else if (Date.class.isAssignabl...
[ { "covered_lines": 4, "line_coverage": 0.6667, "name": "com.fasterxml.jackson.databind.ser.TestMapSerialization::testClassKey", "total_lines": 6 } ]
423
JacksonDatabind
10
{ "fields": [ { "modifier": "", "original_string": "protected final BeanProperty _property;", "type": "BeanProperty", "var_name": "_property" }, { "modifier": "", "original_string": "protected final AnnotatedMember _accessor;", "type": "AnnotatedMember", "va...
{ "body": "public void getAndSerialize(Object bean, JsonGenerator gen, SerializerProvider provider)\n throws Exception\n {\n Object value = _accessor.getValue(bean);\n if (value == null) {\n return;\n }\n if (!(value instanceof Map<?,?>)) {\n throw new JsonM...
[ { "covered_lines": 6, "line_coverage": 0.6, "name": "com.fasterxml.jackson.databind.ser.TestAnyGetter::testIssue705", "total_lines": 10 } ]
424
JacksonDatabind
10
{ "fields": [ { "modifier": "", "original_string": "protected final BeanProperty _property;", "type": "BeanProperty", "var_name": "_property" }, { "modifier": "", "original_string": "protected final AnnotatedMember _accessor;", "type": "AnnotatedMember", "va...
{ "body": "@SuppressWarnings(\"unchecked\")\n public void resolve(SerializerProvider provider) throws JsonMappingException\n {\n // 05-Sep-2013, tatu: I _think_ this can be considered a primary property...\n if (_serializer instanceof ContextualSerializer) {\n JsonSerializer<?> ser = pr...
[ { "covered_lines": 2, "line_coverage": 1, "name": "com.fasterxml.jackson.databind.ser.TestAnyGetter::testIssue705", "total_lines": 2 } ]
425
JacksonDatabind
10
{ "fields": [ { "modifier": "", "original_string": "private static final long serialVersionUID = 1;", "type": "long", "var_name": "serialVersionUID" }, { "modifier": "", "original_string": "public final static BeanSerializerFactory instance = new BeanSerializerFactory(n...
{ "body": "@SuppressWarnings(\"unchecked\")\n protected JsonSerializer<Object> constructBeanSerializer(SerializerProvider prov,\n BeanDescription beanDesc)\n throws JsonMappingException\n {\n // 13-Oct-2010, tatu: quick sanity check: never try to create bean serializer for plain Object\...
[ { "covered_lines": 32, "line_coverage": 0.7273, "name": "com.fasterxml.jackson.databind.ser.TestAnyGetter::testIssue705", "total_lines": 44 } ]
426
JacksonDatabind
11
{ "fields": [ { "modifier": "", "original_string": "private static final long serialVersionUID = 1L;", "type": "long", "var_name": "serialVersionUID" }, { "modifier": "", "original_string": "private final static JavaType[] NO_TYPES = new JavaType[0];", "type": "Ja...
{ "body": "protected JavaType _fromVariable(TypeVariable<?> type, TypeBindings context)\n {\n final String name = type.getName();\n // 19-Mar-2015: Without context, all we can check are bounds.\n if (context == null) {\n // And to prevent infinite loops, now need this:\n ...
[ { "covered_lines": 3, "line_coverage": 0.3333, "name": "com.fasterxml.jackson.databind.type.TestJavaType::testLocalType728", "total_lines": 9 }, { "covered_lines": 6, "line_coverage": 0.6667, "name": "com.fasterxml.jackson.databind.type.TestLocalType609::testLocalPartialType609", ...
427
JacksonDatabind
12
{ "fields": [ { "modifier": "", "original_string": "private static final long serialVersionUID = -3378654289961736240L;", "type": "long", "var_name": "serialVersionUID" }, { "modifier": "", "original_string": "protected final JavaType _mapType;", "type": "JavaType...
{ "body": "@Override\n public boolean isCachable() {\n /* As per [databind#735], existence of value or key deserializer (only passed\n * if annotated to use non-standard one) should also prevent caching.\n */\n return (_valueDeserializer == null)\n && (_keyDeserializer ...
[ { "covered_lines": 1, "line_coverage": 1, "name": "com.fasterxml.jackson.databind.deser.TestCustomDeserializers::testCustomMapValueDeser735", "total_lines": 1 } ]
428
JacksonDatabind
13
{ "fields": [ { "modifier": "", "original_string": "private static final long serialVersionUID = 1L;", "type": "long", "var_name": "serialVersionUID" }, { "modifier": "", "original_string": "protected transient LinkedHashMap<ObjectIdGenerator.IdKey, ReadableObjectId> _o...
{ "body": "@Override\n public ReadableObjectId findObjectId(Object id, ObjectIdGenerator<?> gen, ObjectIdResolver resolverType)\n {\n /* 02-Apr-2015, tatu: As per [databind#742] should allow 'null', similar to how\n * missing id already works.\n */\n if (id == null) {\n ...
[ { "covered_lines": 1, "line_coverage": 0.0476, "name": "com.fasterxml.jackson.databind.struct.TestObjectIdDeserialization::testNullObjectId", "total_lines": 21 } ]
429
JacksonDatabind
13
{ "fields": [ { "modifier": "", "original_string": "private static final long serialVersionUID = 1L;", "type": "long", "var_name": "serialVersionUID" }, { "modifier": "", "original_string": "protected final ObjectIdReader _objectIdReader;", "type": "ObjectIdReader...
{ "body": "@Override\n public Object deserializeSetAndReturn(JsonParser jp,\n \t\tDeserializationContext ctxt, Object instance) throws IOException\n {\n // note: no null checks (unlike usually); deserializer should fail if one found\n Object id = _valueDeserializer.deserialize(jp, ctxt);\n\n ...
[ { "covered_lines": 2, "line_coverage": 0.2857, "name": "com.fasterxml.jackson.databind.struct.TestObjectIdDeserialization::testNullObjectId", "total_lines": 7 } ]
430
JacksonDatabind
14
{ "fields": [ { "modifier": "", "original_string": "private static final long serialVersionUID = 1L;", "type": "long", "var_name": "serialVersionUID" }, { "modifier": "", "original_string": "private final static JavaType JSON_NODE_TYPE = SimpleType.constructUnsafe(JsonN...
{ "body": "protected JsonNode _bindAsTree(JsonParser jp) throws IOException\n {\n JsonNode result;\n JsonToken t = _initForReading(jp);\n if (t == JsonToken.VALUE_NULL || t == JsonToken.END_ARRAY || t == JsonToken.END_OBJECT) {\n result = NullNode.instance;\n } else {\n ...
[ { "covered_lines": 6, "line_coverage": 0.6, "name": "com.fasterxml.jackson.databind.convert.TestUpdateValue::testIssue744", "total_lines": 10 } ]
431
JacksonDatabind
15
{ "fields": [ { "modifier": "", "original_string": "private static final long serialVersionUID = 1;", "type": "long", "var_name": "serialVersionUID" }, { "modifier": "", "original_string": "public final static BeanSerializerFactory instance = new BeanSerializerFactory(n...
{ "body": "@Override\n @SuppressWarnings(\"unchecked\")\n public JsonSerializer<Object> createSerializer(SerializerProvider prov,\n JavaType origType)\n throws JsonMappingException\n {\n // Very first thing, let's check if there is explicit serializer annotation:\n final Seria...
[ { "covered_lines": 16, "line_coverage": 0.7619, "name": "com.fasterxml.jackson.databind.convert.TestConvertingSerializer::testIssue731", "total_lines": 21 } ]
432
JacksonDatabind
15
{ "fields": [ { "modifier": "", "original_string": "protected final Converter<Object,?> _converter;", "type": "Converter<Object,?>", "var_name": "_converter" }, { "modifier": "", "original_string": "protected final JavaType _delegateType;", "type": "JavaType", ...
{ "body": "@Override\n public JsonSerializer<?> createContextual(SerializerProvider provider, BeanProperty property)\n throws JsonMappingException\n {\n JsonSerializer<?> delSer = _delegateSerializer;\n JavaType delegateType = _delegateType;\n\n if (delSer == null) {\n // ...
[ { "covered_lines": 5, "line_coverage": 0.5, "name": "com.fasterxml.jackson.databind.convert.TestConvertingSerializer::testIssue731", "total_lines": 10 } ]
433
JacksonDatabind
15
{ "fields": [ { "modifier": "", "original_string": "protected final Converter<Object,?> _converter;", "type": "Converter<Object,?>", "var_name": "_converter" }, { "modifier": "", "original_string": "protected final JavaType _delegateType;", "type": "JavaType", ...
{ "body": "@Override\n public void serialize(Object value, JsonGenerator gen, SerializerProvider provider) throws IOException\n {\n Object delegateValue = convertValue(value);\n // should we accept nulls?\n if (delegateValue == null) {\n provider.defaultSerializeNull(gen);\n ...
[ { "covered_lines": 3, "line_coverage": 0.5, "name": "com.fasterxml.jackson.databind.convert.TestConvertingSerializer::testIssue731", "total_lines": 6 } ]
434
JacksonDatabind
16
{ "fields": [ { "modifier": "", "original_string": "protected HashMap<Class<? extends Annotation>,Annotation> _annotations;", "type": "HashMap<Class<? extends Annotation>,Annotation>", "var_name": "_annotations" } ], "file": "src/main/java/com/fasterxml/jackson/databind/introspect/...
{ "body": "protected final boolean _add(Annotation ann) {\n if (_annotations == null) {\n _annotations = new HashMap<Class<? extends Annotation>,Annotation>();\n }\n Annotation previous = _annotations.put(ann.annotationType(), ann);\n return (previous == null) || !previous.equal...
[ { "covered_lines": 4, "line_coverage": 1, "name": "com.fasterxml.jackson.databind.mixins.MixinsWithBundlesTest::testMixinWithBundles", "total_lines": 4 } ]
435
JacksonDatabind
18
{ "fields": [ { "modifier": "", "original_string": "protected final static MappingIterator<?> EMPTY_ITERATOR =\n new MappingIterator<Object>(null, null, null, null, false, null);", "type": "MappingIterator<?>", "var_name": "EMPTY_ITERATOR" }, { "modifier": "", "o...
{ "body": "public boolean hasNextValue() throws IOException\n {\n switch (_state) {\n case STATE_CLOSED:\n return false;\n case STATE_NEED_RESYNC:\n _resync();\n // fall-through\n case STATE_MAY_HAVE_VALUE:\n JsonToken t = _parser.getCurrentTo...
[ { "covered_lines": 8, "line_coverage": 0.5714, "name": "com.fasterxml.jackson.databind.seq.ReadRecoveryTest::testSimpleRootRecovery", "total_lines": 14 }, { "covered_lines": 8, "line_coverage": 0.5714, "name": "com.fasterxml.jackson.databind.seq.ReadRecoveryTest::testRootBeans", ...
436
JacksonDatabind
18
{ "fields": [ { "modifier": "", "original_string": "protected final static MappingIterator<?> EMPTY_ITERATOR =\n new MappingIterator<Object>(null, null, null, null, false, null);", "type": "MappingIterator<?>", "var_name": "EMPTY_ITERATOR" }, { "modifier": "", "o...
{ "body": "public T nextValue() throws IOException\n {\n switch (_state) {\n case STATE_CLOSED:\n return _throwNoSuchElement();\n case STATE_NEED_RESYNC: // fall-through, will do re-sync\n case STATE_MAY_HAVE_VALUE:\n if (!hasNextValue()) {\n return ...
[ { "covered_lines": 9, "line_coverage": 0.6923, "name": "com.fasterxml.jackson.databind.seq.ReadRecoveryTest::testSimpleRootRecovery", "total_lines": 13 }, { "covered_lines": 9, "line_coverage": 0.6923, "name": "com.fasterxml.jackson.databind.seq.ReadRecoveryTest::testRootBeans", ...
437
JacksonDatabind
19
{ "fields": [ { "modifier": "", "original_string": "private static final long serialVersionUID = 1L;", "type": "long", "var_name": "serialVersionUID" }, { "modifier": "", "original_string": "private final static JavaType[] NO_TYPES = new JavaType[0];", "type": "Ja...
{ "body": "private JavaType _mapType(Class<?> rawClass)\n {\n // 28-May-2015, tatu: Properties are special, as per [databind#810]\n if (rawClass == Properties.class) {\n return MapType.construct(rawClass, CORE_TYPE_STRING, CORE_TYPE_STRING);\n }\n JavaType[] typeParams = find...
[ { "covered_lines": 4, "line_coverage": 0.6667, "name": "com.fasterxml.jackson.databind.convert.TestMapConversions::testMapToProperties", "total_lines": 6 }, { "covered_lines": 4, "line_coverage": 0.6667, "name": "com.fasterxml.jackson.databind.deser.TestMapDeserialization::testReadPr...
438
JacksonDatabind
22
{ "fields": [ { "modifier": "", "original_string": "private static final long serialVersionUID = 1;", "type": "long", "var_name": "serialVersionUID" }, { "modifier": "", "original_string": "public final static BeanSerializerFactory instance = new BeanSerializerFactory(n...
{ "body": "protected JsonSerializer<?> _createSerializer2(SerializerProvider prov,\n JavaType type, BeanDescription beanDesc, boolean staticTyping)\n throws JsonMappingException\n {\n JsonSerializer<?> ser = null;\n final SerializationConfig config = prov.getConfig();\n \n ...
[ { "covered_lines": 15, "line_coverage": 0.4839, "name": "com.fasterxml.jackson.databind.ser.TestJsonValue::testJsonValueWithCustomOverride", "total_lines": 31 } ]
439
JacksonDatabind
24
{ "fields": [ { "modifier": "", "original_string": "private static final long serialVersionUID = 1L;", "type": "long", "var_name": "serialVersionUID" }, { "modifier": "", "original_string": "protected final ClassIntrospector _classIntrospector;", "type": "ClassInt...
{ "body": "public BaseSettings withDateFormat(DateFormat df) {\n if (_dateFormat == df) {\n return this;\n }\n return new BaseSettings(_classIntrospector, _annotationIntrospector, _visibilityChecker, _propertyNamingStrategy, _typeFactory,\n _typeResolverBuilder, df, _han...
[ { "covered_lines": 3, "line_coverage": 0.75, "name": "com.fasterxml.jackson.databind.ser.TestConfig::testDateFormatConfig", "total_lines": 4 } ]
440
JacksonDatabind
25
{ "fields": [ { "modifier": "", "original_string": "private final static Class<?> CLASS_OBJECT = Object.class;", "type": "Class<?>", "var_name": "CLASS_OBJECT" }, { "modifier": "", "original_string": "private final static Class<?> CLASS_STRING = String.class;", "t...
{ "body": "@SuppressWarnings({ \"unchecked\" })\n protected <T extends JavaType> T modifyTypeByAnnotation(DeserializationContext ctxt,\n Annotated a, T type)\n throws JsonMappingException\n {\n // first: let's check class for the instance itself:\n AnnotationIntrospector intr = c...
[ { "covered_lines": 7, "line_coverage": 0.1944, "name": "com.fasterxml.jackson.databind.deser.TestArrayDeserialization::testByteArrayTypeOverride890", "total_lines": 36 } ]
441
JacksonDatabind
25
{ "fields": [ { "modifier": "", "original_string": "private static final long serialVersionUID = 1L;", "type": "long", "var_name": "serialVersionUID" }, { "modifier": "", "original_string": "final protected ConcurrentHashMap<JavaType, JsonDeserializer<Object>> _cachedDe...
{ "body": "private JavaType modifyTypeByAnnotation(DeserializationContext ctxt,\n Annotated a, JavaType type)\n throws JsonMappingException\n {\n // first: let's check class for the instance itself:\n AnnotationIntrospector intr = ctxt.getAnnotationIntrospector();\n Class<?> ...
[ { "covered_lines": 5, "line_coverage": 0.1163, "name": "com.fasterxml.jackson.databind.deser.TestArrayDeserialization::testByteArrayTypeOverride890", "total_lines": 43 } ]
442
JacksonDatabind
27
{ "fields": [ { "modifier": "", "original_string": "private static final long serialVersionUID = 1L;", "type": "long", "var_name": "serialVersionUID" } ], "file": "src/main/java/com/fasterxml/jackson/databind/deser/BeanDeserializer.java", "identifier": "BeanDeserializer", "inte...
{ "body": "@SuppressWarnings(\"resource\")\n protected Object deserializeUsingPropertyBasedWithExternalTypeId(JsonParser p, DeserializationContext ctxt)\n throws IOException\n {\n final ExternalTypeHandler ext = _externalTypeIdHandler.start();\n final PropertyBasedCreator creator = _propert...
[ { "covered_lines": 18, "line_coverage": 0.4186, "name": "com.fasterxml.jackson.databind.jsontype.TestExternalId::testInverseExternalId928", "total_lines": 43 } ]
443
JacksonDatabind
29
{ "fields": [ { "modifier": "", "original_string": "private final ExtTypedProperty[] _properties;", "type": "ExtTypedProperty[]", "var_name": "_properties" }, { "modifier": "", "original_string": "private final HashMap<String, Integer> _nameToPropertyIndex;", "typ...
{ "body": "@SuppressWarnings(\"resource\")\n protected final void _deserializeAndSet(JsonParser p, DeserializationContext ctxt,\n Object bean, int index, String typeId) throws IOException\n {\n /* Ok: time to mix type id, value; and we will actually use \"wrapper-array\"\n * style to e...
[ { "covered_lines": 10, "line_coverage": 0.9091, "name": "com.fasterxml.jackson.databind.jsontype.TestExternalId::testExternalTypeIdWithNull", "total_lines": 11 } ]
444
JacksonDatabind
30
{ "fields": [ { "modifier": "", "original_string": "protected final static int DEFAULT_GENERATOR_FEATURES = JsonGenerator.Feature.collectDefaults();", "type": "int", "var_name": "DEFAULT_GENERATOR_FEATURES" }, { "modifier": "", "original_string": "protected ObjectCodec ...
{ "body": "@Override\n public void copyCurrentEvent(JsonParser p) throws IOException\n {\n if (_mayHaveNativeIds) {\n _checkNativeIds(p);\n }\n switch (p.getCurrentToken()) {\n case START_OBJECT:\n writeStartObject();\n break;\n case END_OBJECT...
[ { "covered_lines": 6, "line_coverage": 0.1463, "name": "com.fasterxml.jackson.databind.jsontype.TestExternalId::testBigDecimal965", "total_lines": 41 } ]
445
JacksonDatabind
33
{ "fields": [ { "modifier": "", "original_string": "private static final long serialVersionUID = 1L;", "type": "long", "var_name": "serialVersionUID" } ], "file": "src/main/java/com/fasterxml/jackson/databind/introspect/JacksonAnnotationIntrospector.java", "identifier": "JacksonA...
{ "body": "@Override\n public PropertyName findNameForSerialization(Annotated a)\n {\n String name = null;\n\n JsonGetter jg = _findAnnotation(a, JsonGetter.class);\n if (jg != null) {\n name = jg.value();\n } else {\n JsonProperty pann = _findAnnotation(a, Json...
[ { "covered_lines": 9, "line_coverage": 0.6923, "name": "com.fasterxml.jackson.databind.struct.TestUnwrapped::testUnwrappedAsPropertyIndicator", "total_lines": 13 } ]
446
JacksonDatabind
34
{ "fields": [ { "modifier": "", "original_string": "public final static NumberSerializer instance = new NumberSerializer(Number.class);", "type": "NumberSerializer", "var_name": "instance" }, { "modifier": "", "original_string": "protected final boolean _isInt;", ...
{ "body": "@Override\n public void acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor, JavaType typeHint) throws JsonMappingException\n {\n if (_isInt) {\n visitIntFormat(visitor, typeHint, JsonParser.NumberType.BIG_INTEGER);\n } else {\n Class<?> h = handledType();\n ...
[ { "covered_lines": 6, "line_coverage": 0.8571, "name": "com.fasterxml.jackson.databind.jsonschema.NewSchemaTest::testSimpleNumbers", "total_lines": 7 } ]
447
JacksonDatabind
35
{ "fields": [ { "modifier": "", "original_string": "private static final long serialVersionUID = 5345570420394408290L;", "type": "long", "var_name": "serialVersionUID" } ], "file": "src/main/java/com/fasterxml/jackson/databind/jsontype/impl/AsWrapperTypeDeserializer.java", "ident...
{ "body": "@SuppressWarnings(\"resource\")\n private final Object _deserialize(JsonParser p, DeserializationContext ctxt) throws IOException\n {\n // 02-Aug-2013, tatu: May need to use native type ids\n if (p.canReadTypeId()) {\n Object typeId = p.getTypeId();\n if (typeId !=...
[ { "covered_lines": 4, "line_coverage": 0.1667, "name": "com.fasterxml.jackson.databind.jsontype.WrapperObjectWithObjectIdTest::testSimple", "total_lines": 24 } ]
448
JacksonDatabind
37
{ "fields": [ { "modifier": "", "original_string": "private static final long serialVersionUID = 1L;", "type": "long", "var_name": "serialVersionUID" } ], "file": "src/main/java/com/fasterxml/jackson/databind/type/SimpleType.java", "identifier": "SimpleType", "interfaces": "", ...
{ "body": "@Override\n protected JavaType _narrow(Class<?> subclass)\n {\n if (_class == subclass) {\n return this;\n }\n // Should we check that there is a sub-class relationship?\n // 15-Jan-2016, tatu: Almost yes, but there are some complications with\n // pla...
[ { "covered_lines": 2, "line_coverage": 0.6667, "name": "com.fasterxml.jackson.databind.objectid.Objecid1083Test::testSimple", "total_lines": 3 } ]
449
JacksonDatabind
38
{ "fields": [ { "modifier": "", "original_string": "private static final long serialVersionUID = 1L;", "type": "long", "var_name": "serialVersionUID" } ], "file": "src/main/java/com/fasterxml/jackson/databind/type/CollectionType.java", "identifier": "CollectionType", "interface...
{ "body": "@Deprecated // since 2.7\n public static CollectionType construct(Class<?> rawType, JavaType elemT) {\n // First: may need to fabricate TypeBindings (needed for refining into\n // concrete collection types, as per [databind#1102])\n TypeVariable<?>[] vars = rawType.getTypeParameters...
[ { "covered_lines": 1, "line_coverage": 1, "name": "com.fasterxml.jackson.databind.interop.DeprecatedTypeHandling1102Test::testExplicitMapType", "total_lines": 1 }, { "covered_lines": 1, "line_coverage": 1, "name": "com.fasterxml.jackson.databind.interop.DeprecatedTypeHandling1102Test...
450
JacksonDatabind
38
{ "fields": [ { "modifier": "", "original_string": "private static final long serialVersionUID = 1L;", "type": "long", "var_name": "serialVersionUID" } ], "file": "src/main/java/com/fasterxml/jackson/databind/type/MapType.java", "identifier": "MapType", "interfaces": "", "sup...
{ "body": "@Deprecated // since 2.7\n public static MapType construct(Class<?> rawType, JavaType keyT, JavaType valueT)\n {\n // First: may need to fabricate TypeBindings (needed for refining into\n // concrete collection types, as per [databind#1102])\n TypeVariable<?>[] vars = rawType.get...
[ { "covered_lines": 1, "line_coverage": 1, "name": "com.fasterxml.jackson.databind.interop.DeprecatedTypeHandling1102Test::testExplicitMapType", "total_lines": 1 }, { "covered_lines": 1, "line_coverage": 1, "name": "com.fasterxml.jackson.databind.interop.DeprecatedTypeHandling1102Test...
451
JacksonDatabind
38
{ "fields": [ { "modifier": "", "original_string": "private static final long serialVersionUID = 1L;", "type": "long", "var_name": "serialVersionUID" } ], "file": "src/main/java/com/fasterxml/jackson/databind/type/SimpleType.java", "identifier": "SimpleType", "interfaces": "", ...
{ "body": "@Deprecated\n public static SimpleType construct(Class<?> cls)\n {\n /* Let's add sanity checks, just to ensure no\n * Map/Collection entries are constructed\n */\n if (Map.class.isAssignableFrom(cls)) {\n throw new IllegalArgumentException(\"Can not construct...
[ { "covered_lines": 5, "line_coverage": 0.625, "name": "com.fasterxml.jackson.databind.interop.DeprecatedTypeHandling1102Test::testExplicitMapType", "total_lines": 8 }, { "covered_lines": 5, "line_coverage": 0.625, "name": "com.fasterxml.jackson.databind.interop.DeprecatedTypeHandling...
452
JacksonDatabind
39
{ "fields": [ { "modifier": "", "original_string": "private static final long serialVersionUID = 1L;", "type": "long", "var_name": "serialVersionUID" }, { "modifier": "", "original_string": "public final static NullifyingDeserializer instance = new NullifyingDeserialize...
{ "body": "@Override\n public Object deserialize(JsonParser p, DeserializationContext ctxt) throws IOException\n {\n // 29-Jan-2016, tatu: Simple skipping for all other tokens, but FIELD_NAME bit\n // special unfortunately\n if (p.hasToken(JsonToken.FIELD_NAME)) {\n while (tru...
[ { "covered_lines": 2, "line_coverage": 1, "name": "com.fasterxml.jackson.databind.jsontype.TestPolymorphicWithDefaultImpl::testUnknownTypeIDRecovery", "total_lines": 2 } ]
453
JacksonDatabind
41
{ "fields": [ { "modifier": "", "original_string": "private static final long serialVersionUID = 1L;", "type": "long", "var_name": "serialVersionUID" }, { "modifier": "", "original_string": "private final static JavaType[] NO_TYPES = new JavaType[0];", "type": "Ja...
{ "body": "@Deprecated\n public JavaType constructType(Type type, Class<?> contextClass) {\n TypeBindings bindings = (contextClass == null)\n ? TypeBindings.emptyBindings() : constructType(contextClass).getBindings();\n return _fromAny(null, type, bindings);\n }", "class_method_si...
[ { "covered_lines": 1, "line_coverage": 1, "name": "com.fasterxml.jackson.databind.interop.DeprecatedTypeHandling1102Test::testDeprecatedTypeResolution", "total_lines": 1 } ]
454
JacksonDatabind
41
{ "fields": [ { "modifier": "", "original_string": "private static final long serialVersionUID = 1L;", "type": "long", "var_name": "serialVersionUID" }, { "modifier": "", "original_string": "private final static JavaType[] NO_TYPES = new JavaType[0];", "type": "Ja...
{ "body": "@Deprecated\n public JavaType constructType(Type type, JavaType contextType) {\n TypeBindings bindings = (contextType == null)\n ? TypeBindings.emptyBindings() : contextType.getBindings();\n return _fromAny(null, type, bindings);\n }", "class_method_signature": "TypeFac...
[ { "covered_lines": 1, "line_coverage": 1, "name": "com.fasterxml.jackson.databind.interop.DeprecatedTypeHandling1102Test::testDeprecatedTypeResolution", "total_lines": 1 } ]
455
JacksonDatabind
42
{ "fields": [], "file": "src/main/java/com/fasterxml/jackson/databind/deser/std/FromStringDeserializer.java", "identifier": "FromStringDeserializer", "interfaces": "", "superclass": "StdScalarDeserializer<T>" }
{ "body": "@Override\n protected Object _deserializeFromEmptyString() throws IOException {\n // As per [databind#398], URI requires special handling\n if (_kind == STD_URI) {\n return URI.create(\"\");\n }\n // As per [databind#1123], Locale too\n ...
[ { "covered_lines": 1, "line_coverage": 1, "name": "com.fasterxml.jackson.databind.deser.TestJdkTypes::testLocale", "total_lines": 1 } ]
456
JacksonDatabind
43
{ "fields": [ { "modifier": "", "original_string": "private static final long serialVersionUID = 1L;", "type": "long", "var_name": "serialVersionUID" }, { "modifier": "", "original_string": "protected final ObjectIdReader _objectIdReader;", "type": "ObjectIdReader...
{ "body": "@Override\n public Object deserializeSetAndReturn(JsonParser p,\n \t\tDeserializationContext ctxt, Object instance) throws IOException\n {\n /* 02-Apr-2015, tatu: Actually, as per [databind#742], let it be;\n * missing or null id is needed for some cases, such as cases where id\n ...
[ { "covered_lines": 1, "line_coverage": 0.1111, "name": "com.fasterxml.jackson.databind.objectid.TestObjectIdSerialization::testNullStringPropertyId", "total_lines": 9 } ]
457
JacksonDatabind
44
{ "fields": [ { "modifier": "", "original_string": "private static final long serialVersionUID = 1L;", "type": "long", "var_name": "serialVersionUID" } ], "file": "src/main/java/com/fasterxml/jackson/databind/type/SimpleType.java", "identifier": "SimpleType", "interfaces": "", ...
{ "body": "@Override\n @Deprecated\n protected JavaType _narrow(Class<?> subclass)\n {\n if (_class == subclass) {\n return this;\n }\n // Should we check that there is a sub-class relationship?\n // 15-Jan-2016, tatu: Almost yes, but there are some complications with\n...
[ { "covered_lines": 2, "line_coverage": 0.6667, "name": "com.fasterxml.jackson.databind.jsontype.TestSubtypes::testIssue1125WithDefault", "total_lines": 3 } ]
458
JacksonDatabind
45
{ "fields": [ { "modifier": "", "original_string": "protected final Boolean _useTimestamp;", "type": "Boolean", "var_name": "_useTimestamp" }, { "modifier": "", "original_string": "protected final DateFormat _customFormat;", "type": "DateFormat", "var_name":...
{ "body": "@Override\n public JsonSerializer<?> createContextual(SerializerProvider serializers,\n BeanProperty property) throws JsonMappingException\n {\n if (property != null) {\n JsonFormat.Value format = serializers.getAnnotationIntrospector().findFormat((Annotated)property.getM...
[ { "covered_lines": 7, "line_coverage": 0.35, "name": "com.fasterxml.jackson.databind.ser.DateSerializationTest::testDateDefaultShape", "total_lines": 20 } ]
459
JacksonDatabind
46
{ "fields": [ { "modifier": "", "original_string": "private static final long serialVersionUID = 1L;", "type": "long", "var_name": "serialVersionUID" }, { "modifier": "", "original_string": "protected final JavaType _referencedType;", "type": "JavaType", "va...
{ "body": "@Override\n public StringBuilder getGenericSignature(StringBuilder sb)\n {\n _classSignature(_class, sb, false);\n sb.append('<');\n sb = _referencedType.getGenericSignature(sb);\n sb.append(\">;\");\n return sb;\n }", "class_method_signature": "ReferenceType.g...
[ { "covered_lines": 5, "line_coverage": 1, "name": "com.fasterxml.jackson.databind.type.TestJavaType::testGenericSignature1195", "total_lines": 5 } ]
460
JacksonDatabind
47
{ "fields": [], "file": "src/main/java/com/fasterxml/jackson/databind/AnnotationIntrospector.java", "identifier": "AnnotationIntrospector", "interfaces": "Versioned, java.io.Serializable", "superclass": "" }
{ "body": "public JavaType refineSerializationType(final MapperConfig<?> config,\n final Annotated a, final JavaType baseType) throws JsonMappingException\n {\n JavaType type = baseType;\n final TypeFactory tf = config.getTypeFactory();\n \n // 10-Oct-2015, tatu: For 2.7, we'...
[ { "covered_lines": 14, "line_coverage": 0.2642, "name": "com.fasterxml.jackson.databind.ser.TestJsonSerialize::testBrokenAnnotation", "total_lines": 53 }, { "covered_lines": 14, "line_coverage": 0.2642, "name": "com.fasterxml.jackson.databind.ser.TestJsonSerializeAs::testSpecializedA...
461
JacksonDatabind
48
{ "fields": [ { "modifier": "", "original_string": "private static final long serialVersionUID = 1;", "type": "long", "var_name": "serialVersionUID" }, { "modifier": "", "original_string": "protected final static PrettyPrinter DEFAULT_PRETTY_PRINTER = new DefaultPrettyP...
{ "body": "@Override\n public VisibilityChecker<?> getDefaultVisibilityChecker()\n {\n VisibilityChecker<?> vchecker = super.getDefaultVisibilityChecker();\n // then global overrides (disabling)\n if (!isEnabled(MapperFeature.AUTO_DETECT_SETTERS)) {\n vchecker = vchecker.withSett...
[ { "covered_lines": 8, "line_coverage": 1, "name": "com.fasterxml.jackson.databind.ser.TestFeatures::testVisibilityFeatures", "total_lines": 8 } ]
462
JacksonDatabind
49
{ "fields": [ { "modifier": "", "original_string": "public final ObjectIdGenerator<?> generator;", "type": "ObjectIdGenerator<?>", "var_name": "generator" }, { "modifier": "", "original_string": "public Object id;", "type": "Object", "var_name": "id" }, ...
{ "body": "public Object generateId(Object forPojo) {\n // 04-Jun-2016, tatu: As per [databind#1255], need to consider possibility of\n // id being generated for \"alwaysAsId\", but not being written as POJO; regardless,\n // need to use existing id if there is one:\n if (id == null)...
[ { "covered_lines": 2, "line_coverage": 1, "name": "com.fasterxml.jackson.databind.objectid.AlwaysAsReferenceFirstTest::testIssue1255", "total_lines": 2 } ]
463
JacksonDatabind
50
{ "fields": [ { "modifier": "", "original_string": "private static final long serialVersionUID = 1L;", "type": "long", "var_name": "serialVersionUID" }, { "modifier": "", "original_string": "protected transient Exception _nullFromCreator;", "type": "Exception", ...
{ "body": "@Override\n @SuppressWarnings(\"resource\")\n protected Object _deserializeUsingPropertyBased(final JsonParser p, final DeserializationContext ctxt)\n throws IOException\n {\n final PropertyBasedCreator creator = _propertyBasedCreator;\n PropertyValueBuffer buffer = creator.st...
[ { "covered_lines": 21, "line_coverage": 0.3889, "name": "com.fasterxml.jackson.databind.objectid.ObjectWithCreator1261Test::testObjectIds1261", "total_lines": 54 } ]
464
JacksonDatabind
51
{ "fields": [ { "modifier": "", "original_string": "private static final long serialVersionUID = 1;", "type": "long", "var_name": "serialVersionUID" }, { "modifier": "", "original_string": "protected final TypeIdResolver _idResolver;", "type": "TypeIdResolver", ...
{ "body": "protected final JsonDeserializer<Object> _findDeserializer(DeserializationContext ctxt,\n String typeId) throws IOException\n {\n JsonDeserializer<Object> deser = _deserializers.get(typeId);\n if (deser == null) {\n /* As per [Databind#305], need to provide contextual...
[ { "covered_lines": 10, "line_coverage": 0.5882, "name": "com.fasterxml.jackson.databind.jsontype.TestCustomTypeIdResolver::testPolymorphicTypeViaCustom", "total_lines": 17 } ]
465
JacksonDatabind
52
{ "fields": [ { "modifier": "", "original_string": "private static final long serialVersionUID = 1;", "type": "long", "var_name": "serialVersionUID" }, { "modifier": "", "original_string": "protected final static PropertyName TEMP_PROPERTY_NAME = new PropertyName(\"#tem...
{ "body": "@Override\n public void resolve(DeserializationContext ctxt)\n throws JsonMappingException\n {\n ExternalTypeHandler.Builder extTypes = null;\n // if ValueInstantiator can use \"creator\" approach, need to resolve it here...\n SettableBeanProperty[] creatorProps;\n\n ...
[ { "covered_lines": 47, "line_coverage": 0.6438, "name": "com.fasterxml.jackson.databind.jsontype.ext.ExternalTypeId999Test::testExternalTypeId", "total_lines": 73 } ]
466
JacksonDatabind
53
{ "fields": [ { "modifier": "", "original_string": "private static final long serialVersionUID = 1L;", "type": "long", "var_name": "serialVersionUID" }, { "modifier": "", "original_string": "private final static String[] NO_STRINGS = new String[0];", "type": "Stri...
{ "body": "@Override\n public boolean equals(Object o) {\n if (o == this) return true;\n if (o == null) return false;\n if (o.getClass() != getClass()) return false;\n AsKey other = (AsKey) o;\n\n if ((_hash == other._hash) && (_raw == other._raw)) {\n ...
[ { "covered_lines": 6, "line_coverage": 0.5455, "name": "com.fasterxml.jackson.databind.jsontype.TypeRefinementForMap1215Test::testMapRefinement", "total_lines": 11 } ]
467
JacksonDatabind
53
{ "fields": [ { "modifier": "", "original_string": "private static final long serialVersionUID = 1L;", "type": "long", "var_name": "serialVersionUID" }, { "modifier": "", "original_string": "private final static JavaType[] NO_TYPES = new JavaType[0];", "type": "Ja...
{ "body": "protected JavaType _fromClass(ClassStack context, Class<?> rawType, TypeBindings bindings)\n {\n // Very first thing: small set of core types we know well:\n JavaType result = _findWellKnownSimple(rawType);\n if (result != null) {\n return result;\n }\n // B...
[ { "covered_lines": 32, "line_coverage": 0.8649, "name": "com.fasterxml.jackson.databind.jsontype.TypeRefinementForMap1215Test::testMapRefinement", "total_lines": 37 } ]
468
JacksonDatabind
53
{ "fields": [ { "modifier": "", "original_string": "private static final long serialVersionUID = 1L;", "type": "long", "var_name": "serialVersionUID" }, { "modifier": "", "original_string": "private final static JavaType[] NO_TYPES = new JavaType[0];", "type": "Ja...
{ "body": "public JavaType constructSpecializedType(JavaType baseType, Class<?> subclass)\n {\n // simple optimization to avoid costly introspection if type-erased type does NOT differ\n final Class<?> rawBase = baseType.getRawClass();\n if (rawBase == subclass) {\n return baseType;...
[ { "covered_lines": 14, "line_coverage": 0.3256, "name": "com.fasterxml.jackson.databind.jsontype.TypeRefinementForMap1215Test::testMapRefinement", "total_lines": 43 } ]
469
JacksonDatabind
54
{ "fields": [ { "modifier": "", "original_string": "private final static Object NO_DEFAULT_MARKER = Boolean.FALSE;", "type": "Object", "var_name": "NO_DEFAULT_MARKER" }, { "modifier": "", "original_string": "final protected SerializationConfig _config;", "type": "...
{ "body": "@SuppressWarnings(\"deprecation\")\n protected BeanPropertyWriter buildWriter(SerializerProvider prov,\n BeanPropertyDefinition propDef, JavaType declaredType, JsonSerializer<?> ser,\n TypeSerializer typeSer, TypeSerializer contentTypeSer,\n AnnotatedMember am, boolean d...
[ { "covered_lines": 19, "line_coverage": 0.4318, "name": "com.fasterxml.jackson.databind.deser.TestJDKAtomicTypes::testEmpty1256", "total_lines": 44 } ]
470
JacksonDatabind
55
{ "fields": [ { "modifier": "", "original_string": "protected final static JsonSerializer<Object> DEFAULT_KEY_SERIALIZER = new StdKeySerializer();", "type": "JsonSerializer<Object>", "var_name": "DEFAULT_KEY_SERIALIZER" }, { "modifier": "", "original_string": "protected...
{ "body": "@SuppressWarnings(\"unchecked\")\n public static JsonSerializer<Object> getFallbackKeySerializer(SerializationConfig config,\n Class<?> rawKeyType)\n {\n if (rawKeyType != null) {\n // 29-Sep-2015, tatu: Odd case here, of `Enum`, which we may get for `EnumMap`; not sure\n...
[ { "covered_lines": 5, "line_coverage": 0.8333, "name": "com.fasterxml.jackson.databind.ser.TestEnumSerialization::testEnumsWithJsonPropertyAsKey", "total_lines": 6 } ]
471
JacksonDatabind
57
{ "fields": [ { "modifier": "", "original_string": "private static final long serialVersionUID = 1L;", "type": "long", "var_name": "serialVersionUID" }, { "modifier": "", "original_string": "private final static JavaType JSON_NODE_TYPE = SimpleType.constructUnsafe(JsonN...
{ "body": "public <T> MappingIterator<T> readValues(byte[] src, int offset, int length)\n throws IOException, JsonProcessingException\n {\n if (_dataFormatReaders != null) {\n return _detectBindAndReadValues(_dataFormatReaders.findFormat(src, offset, length), false);\n }\n re...
[ { "covered_lines": 2, "line_coverage": 0.6667, "name": "com.fasterxml.jackson.databind.seq.ReadValuesTest::testRootBeans", "total_lines": 3 } ]
472
JacksonDatabind
58
{ "fields": [ { "modifier": "", "original_string": "private static final long serialVersionUID = 1;", "type": "long", "var_name": "serialVersionUID" }, { "modifier": "", "original_string": "private final static Class<?>[] INIT_CAUSE_PARAMS = new Class<?>[] { Throwable.c...
{ "body": "protected SettableBeanProperty constructSettableProperty(DeserializationContext ctxt,\n BeanDescription beanDesc, BeanPropertyDefinition propDef,\n JavaType propType0)\n throws JsonMappingException\n {\n // need to ensure method is callable (for non-public)\n A...
[ { "covered_lines": 3, "line_coverage": 0.1154, "name": "com.fasterxml.jackson.databind.misc.AccessFixTest::testCauseOfThrowableIgnoral", "total_lines": 26 } ]
473
JacksonDatabind
59
{ "fields": [ { "modifier": "", "original_string": "private static final long serialVersionUID = 1L;", "type": "long", "var_name": "serialVersionUID" }, { "modifier": "", "original_string": "private final static JavaType[] NO_TYPES = new JavaType[0];", "type": "Ja...
{ "body": "public JavaType constructSpecializedType(JavaType baseType, Class<?> subclass)\n {\n // simple optimization to avoid costly introspection if type-erased type does NOT differ\n final Class<?> rawBase = baseType.getRawClass();\n if (rawBase == subclass) {\n return baseType;...
[ { "covered_lines": 12, "line_coverage": 0.3333, "name": "com.fasterxml.jackson.databind.jsontype.TypeRefinementForMapTest::testMapKeyRefinement1384", "total_lines": 36 } ]
474
JacksonDatabind
60
{ "fields": [ { "modifier": "", "original_string": "protected final AnnotatedMethod _accessorMethod;", "type": "AnnotatedMethod", "var_name": "_accessorMethod" }, { "modifier": "", "original_string": "protected final JsonSerializer<Object> _valueSerializer;", "typ...
{ "body": "@Override\n public void serializeWithType(Object bean, JsonGenerator gen, SerializerProvider provider,\n TypeSerializer typeSer0) throws IOException\n {\n // Regardless of other parts, first need to find value to serialize:\n Object value = null;\n try {\n v...
[ { "covered_lines": 9, "line_coverage": 0.36, "name": "com.fasterxml.jackson.databind.jsontype.TestDefaultWithCreators::testWithCreatorAndJsonValue", "total_lines": 25 }, { "covered_lines": 9, "line_coverage": 0.36, "name": "com.fasterxml.jackson.databind.jsontype.ext.ExternalTypeIdTe...
475
JacksonDatabind
61
{ "fields": [ { "modifier": "", "original_string": "protected JsonTypeInfo.Id _idType;", "type": "JsonTypeInfo.Id", "var_name": "_idType" }, { "modifier": "", "original_string": "protected JsonTypeInfo.As _includeAs;", "type": "JsonTypeInfo.As", "var_name": ...
{ "body": "@Override\n public TypeDeserializer buildTypeDeserializer(DeserializationConfig config,\n JavaType baseType, Collection<NamedType> subtypes)\n {\n if (_idType == JsonTypeInfo.Id.NONE) { return null; }\n // 03-Oct-2016, tatu: As per [databind#1395] better prevent use for primi...
[ { "covered_lines": 6, "line_coverage": 0.4286, "name": "com.fasterxml.jackson.databind.jsontype.DefaultTypingWithPrimitivesTest::testDefaultTypingWithLong", "total_lines": 14 } ]
476
JacksonDatabind
61
{ "fields": [ { "modifier": "", "original_string": "protected JsonTypeInfo.Id _idType;", "type": "JsonTypeInfo.Id", "var_name": "_idType" }, { "modifier": "", "original_string": "protected JsonTypeInfo.As _includeAs;", "type": "JsonTypeInfo.As", "var_name": ...
{ "body": "@Override\n public TypeSerializer buildTypeSerializer(SerializationConfig config,\n JavaType baseType, Collection<NamedType> subtypes)\n {\n if (_idType == JsonTypeInfo.Id.NONE) { return null; }\n // 03-Oct-2016, tatu: As per [databind#1395] better prevent use for primitives,...
[ { "covered_lines": 4, "line_coverage": 0.4444, "name": "com.fasterxml.jackson.databind.jsontype.DefaultTypingWithPrimitivesTest::testDefaultTypingWithLong", "total_lines": 9 } ]
477
JacksonDatabind
62
{ "fields": [ { "modifier": "", "original_string": "private static final long serialVersionUID = -1L;", "type": "long", "var_name": "serialVersionUID" }, { "modifier": "", "original_string": "protected final JavaType _collectionType;", "type": "JavaType", "v...
{ "body": "@Override\n public CollectionDeserializer createContextual(DeserializationContext ctxt,\n BeanProperty property) throws JsonMappingException\n {\n // May need to resolve types for delegate-based creators:\n JsonDeserializer<Object> delegateDeser = null;\n if (_valueIns...
[ { "covered_lines": 13, "line_coverage": 0.6842, "name": "com.fasterxml.jackson.databind.creators.ArrayDelegatorCreatorForCollectionTest::testUnmodifiable", "total_lines": 19 } ]
478
JacksonDatabind
64
{ "fields": [ { "modifier": "", "original_string": "private final static Object NO_DEFAULT_MARKER = Boolean.FALSE;", "type": "Object", "var_name": "NO_DEFAULT_MARKER" }, { "modifier": "", "original_string": "final protected SerializationConfig _config;", "type": "...
{ "body": "@SuppressWarnings(\"deprecation\")\n protected BeanPropertyWriter buildWriter(SerializerProvider prov,\n BeanPropertyDefinition propDef, JavaType declaredType, JsonSerializer<?> ser,\n TypeSerializer typeSer, TypeSerializer contentTypeSer,\n AnnotatedMember am, boolean d...
[ { "covered_lines": 26, "line_coverage": 0.52, "name": "com.fasterxml.jackson.databind.filter.JsonIncludeTest::testIssue1351", "total_lines": 50 } ]
479
JacksonDatabind
67
{ "fields": [ { "modifier": "", "original_string": "private final static Class<?> CLASS_OBJECT = Object.class;", "type": "Class<?>", "var_name": "CLASS_OBJECT" }, { "modifier": "", "original_string": "private final static Class<?> CLASS_STRING = String.class;", "t...
{ "body": "@Override\n public KeyDeserializer createKeyDeserializer(DeserializationContext ctxt,\n JavaType type)\n throws JsonMappingException\n {\n final DeserializationConfig config = ctxt.getConfig();\n KeyDeserializer deser = null;\n if (_factoryConfig.hasKeyDeseriali...
[ { "covered_lines": 11, "line_coverage": 0.5789, "name": "com.fasterxml.jackson.databind.module.TestCustomEnumKeyDeserializer::testCustomEnumValueAndKeyViaModifier", "total_lines": 19 } ]
480
JacksonDatabind
68
{ "fields": [ { "modifier": "", "original_string": "private static final long serialVersionUID = 1;", "type": "long", "var_name": "serialVersionUID" }, { "modifier": "", "original_string": "protected final static PropertyName TEMP_PROPERTY_NAME = new PropertyName(\"#tem...
{ "body": "public Object deserializeFromArray(JsonParser p, DeserializationContext ctxt) throws IOException\n {\n // note: can not call `_delegateDeserializer()` since order reversed here:\n JsonDeserializer<Object> delegateDeser = _arrayDelegateDeserializer;\n // fallback to non-array delegat...
[ { "covered_lines": 4, "line_coverage": 0.1333, "name": "com.fasterxml.jackson.databind.struct.SingleValueAsArrayTest::testSuccessfulDeserializationOfObjectWithChainedArrayCreators", "total_lines": 30 }, { "covered_lines": 0, "line_coverage": 0, "name": "com.fasterxml.jackson.databind...
481
JacksonDatabind
68
{ "fields": [ { "modifier": "", "original_string": "private static final long serialVersionUID = 1;", "type": "long", "var_name": "serialVersionUID" }, { "modifier": "", "original_string": "protected final static PropertyName TEMP_PROPERTY_NAME = new PropertyName(\"#tem...
{ "body": "protected Object deserializeFromObjectUsingNonDefault(JsonParser p,\n DeserializationContext ctxt) throws IOException\n {\n final JsonDeserializer<Object> delegateDeser = _delegateDeserializer();\n if (delegateDeser != null) {\n return _valueInstantiator.createUsingDe...
[ { "covered_lines": 4, "line_coverage": 0.5, "name": "com.fasterxml.jackson.databind.struct.SingleValueAsArrayTest::testSuccessfulDeserializationOfObjectWithChainedArrayCreators", "total_lines": 8 }, { "covered_lines": 0, "line_coverage": 0, "name": "com.fasterxml.jackson.databind.str...
482
JacksonDatabind
68
{ "fields": [ { "modifier": "", "original_string": "private static final long serialVersionUID = 1;", "type": "long", "var_name": "serialVersionUID" }, { "modifier": "", "original_string": "protected final static PropertyName TEMP_PROPERTY_NAME = new PropertyName(\"#tem...
{ "body": "public Object deserializeFromString(JsonParser p, DeserializationContext ctxt) throws IOException\n {\n // First things first: id Object Id is used, most likely that's it\n if (_objectIdReader != null) {\n return deserializeFromObjectId(p, ctxt);\n }\n /* Bit compl...
[ { "covered_lines": 0, "line_coverage": 0, "name": "com.fasterxml.jackson.databind.struct.SingleValueAsArrayTest::testSuccessfulDeserializationOfObjectWithChainedArrayCreators", "total_lines": 10 }, { "covered_lines": 3, "line_coverage": 0.3, "name": "com.fasterxml.jackson.databind.st...
483
JacksonDatabind
69
{ "fields": [ { "modifier": "", "original_string": "protected final static int C_DEFAULT = 0;", "type": "int", "var_name": "C_DEFAULT" }, { "modifier": "", "original_string": "protected final static int C_STRING = 1;", "type": "int", "var_name": "C_STRING" ...
{ "body": "protected boolean verifyNonDup(AnnotatedWithParams newOne, int typeIndex, boolean explicit)\n {\n final int mask = (1 << typeIndex);\n _hasNonDefaultCreator = true;\n AnnotatedWithParams oldOne = _creators[typeIndex];\n // already had an explicitly marked one?\n if (ol...
[ { "covered_lines": 13, "line_coverage": 0.65, "name": "com.fasterxml.jackson.databind.creators.Creator1476Test::testConstructorChoice", "total_lines": 20 } ]
484
JacksonDatabind
70
{ "fields": [ { "modifier": "", "original_string": "private static final long serialVersionUID = 2L;", "type": "long", "var_name": "serialVersionUID" }, { "modifier": "", "original_string": "protected final boolean _caseInsensitive;", "type": "boolean", "var...
{ "body": "public void remove(SettableBeanProperty propToRm)\n {\n ArrayList<SettableBeanProperty> props = new ArrayList<SettableBeanProperty>(_size);\n String key = getPropertyName(propToRm);\n boolean found = false;\n\n for (int i = 1, end = _hashArea.length; i < end; i += 2) {\n ...
[ { "covered_lines": 13, "line_coverage": 0.7647, "name": "com.fasterxml.jackson.databind.struct.TestUnwrapped::testCaseInsensitiveUnwrap", "total_lines": 17 } ]
485
JacksonDatabind
71
{ "fields": [ { "modifier": "", "original_string": "private static final long serialVersionUID = 1L;", "type": "long", "var_name": "serialVersionUID" }, { "modifier": "", "original_string": "public final static int TYPE_BOOLEAN = 1;", "type": "int", "var_nam...
{ "body": "public static StdKeyDeserializer forType(Class<?> raw)\n {\n int kind;\n\n // first common types:\n if (raw == String.class || raw == Object.class || raw == CharSequence.class) {\n return StringKD.forType(raw);\n } else if (raw == UUID.class) {\n kind = ...
[ { "covered_lines": 18, "line_coverage": 0.4737, "name": "com.fasterxml.jackson.databind.deser.TestMapDeserialization::testcharSequenceKeyMap", "total_lines": 38 } ]
486
JacksonDatabind
73
{ "fields": [ { "modifier": "", "original_string": "protected final MapperConfig<?> _config;", "type": "MapperConfig<?>", "var_name": "_config" }, { "modifier": "", "original_string": "protected final boolean _forSerialization;", "type": "boolean", "var_name...
{ "body": "protected void _removeUnwantedAccessor(Map<String, POJOPropertyBuilder> props)\n {\n final boolean inferMutators = _config.isEnabled(MapperFeature.INFER_PROPERTY_MUTATORS);\n Iterator<POJOPropertyBuilder> it = props.values().iterator();\n\n while (it.hasNext()) {\n POJOPr...
[ { "covered_lines": 7, "line_coverage": 1, "name": "com.fasterxml.jackson.databind.deser.ReadOrWriteOnlyTest::testReadOnlyAndWriteOnly", "total_lines": 7 }, { "covered_lines": 7, "line_coverage": 1, "name": "com.fasterxml.jackson.databind.deser.ReadOrWriteOnlyTest::testReadOnly935", ...
487
JacksonDatabind
73
{ "fields": [ { "modifier": "", "original_string": "protected final boolean _forSerialization;", "type": "boolean", "var_name": "_forSerialization" }, { "modifier": "", "original_string": "protected final MapperConfig<?> _config;", "type": "MapperConfig<?>", ...
{ "body": "public JsonProperty.Access removeNonVisible(boolean inferMutators)\n {\n /* 07-Jun-2015, tatu: With 2.6, we will allow optional definition\n * of explicit access type for property; if not \"AUTO\", it will\n * dictate how visibility checks are applied.\n */\n Json...
[ { "covered_lines": 11, "line_coverage": 0.6111, "name": "com.fasterxml.jackson.databind.deser.ReadOrWriteOnlyTest::testReadOnlyAndWriteOnly", "total_lines": 18 }, { "covered_lines": 12, "line_coverage": 0.6667, "name": "com.fasterxml.jackson.databind.deser.ReadOrWriteOnlyTest::testRe...
488
JacksonDatabind
74
{ "fields": [ { "modifier": "", "original_string": "private static final long serialVersionUID = 1L;", "type": "long", "var_name": "serialVersionUID" }, { "modifier": "", "original_string": "protected final As _inclusion;", "type": "As", "var_name": "_inclus...
{ "body": "@SuppressWarnings(\"resource\")\n protected Object _deserializeTypedUsingDefaultImpl(JsonParser p, DeserializationContext ctxt,\n TokenBuffer tb) throws IOException\n {\n // As per [JACKSON-614], may have default implementation to use\n JsonDeserializer<Object> deser = _findD...
[ { "covered_lines": 7, "line_coverage": 0.4667, "name": "com.fasterxml.jackson.databind.jsontype.TestPolymorphicWithDefaultImpl::testWithEmptyStringAsNullObject1533", "total_lines": 15 } ]
489
JacksonDatabind
75
{ "fields": [ { "modifier": "", "original_string": "private static final long serialVersionUID = 1L;", "type": "long", "var_name": "serialVersionUID" }, { "modifier": "", "original_string": "protected final EnumValues _values;", "type": "EnumValues", "var_na...
{ "body": "protected static Boolean _isShapeWrittenUsingIndex(Class<?> enumClass,\n JsonFormat.Value format, boolean fromClass,\n Boolean defaultValue)\n {\n JsonFormat.Shape shape = (format == null) ? null : format.getShape();\n if (shape == null) {\n return defaultV...
[ { "covered_lines": 7, "line_coverage": 0.6364, "name": "com.fasterxml.jackson.databind.struct.EnumFormatShapeTest::testEnumPropertyAsNumber", "total_lines": 11 } ]
490
JacksonDatabind
75
{ "fields": [ { "modifier": "", "original_string": "private static final long serialVersionUID = 1L;", "type": "long", "var_name": "serialVersionUID" }, { "modifier": "", "original_string": "protected final EnumValues _values;", "type": "EnumValues", "var_na...
{ "body": "@SuppressWarnings(\"unchecked\")\n public static EnumSerializer construct(Class<?> enumClass, SerializationConfig config,\n BeanDescription beanDesc, JsonFormat.Value format)\n {\n /* 08-Apr-2015, tatu: As per [databind#749], we can not statically determine\n * between nam...
[ { "covered_lines": 3, "line_coverage": 1, "name": "com.fasterxml.jackson.databind.struct.EnumFormatShapeTest::testEnumPropertyAsNumber", "total_lines": 3 } ]
491
JacksonDatabind
75
{ "fields": [ { "modifier": "", "original_string": "private static final long serialVersionUID = 1L;", "type": "long", "var_name": "serialVersionUID" }, { "modifier": "", "original_string": "protected final EnumValues _values;", "type": "EnumValues", "var_na...
{ "body": "@Override\n public JsonSerializer<?> createContextual(SerializerProvider serializers,\n BeanProperty property) throws JsonMappingException\n {\n if (property != null) {\n JsonFormat.Value format = findFormatOverrides(serializers,\n property, handledType...
[ { "covered_lines": 7, "line_coverage": 0.875, "name": "com.fasterxml.jackson.databind.struct.EnumFormatShapeTest::testEnumPropertyAsNumber", "total_lines": 8 } ]
492
JacksonDatabind
76
{ "fields": [ { "modifier": "", "original_string": "private static final long serialVersionUID = 1L;", "type": "long", "var_name": "serialVersionUID" }, { "modifier": "", "original_string": "protected final AnnotatedMethod _buildMethod;", "type": "AnnotatedMethod"...
{ "body": "@SuppressWarnings(\"resource\")\n protected Object deserializeUsingPropertyBasedWithUnwrapped(JsonParser p,\n \t\tDeserializationContext ctxt)\n throws IOException, JsonProcessingException\n {\n final PropertyBasedCreator creator = _propertyBasedCreator;\n PropertyValueBuffer ...
[ { "covered_lines": 21, "line_coverage": 0.4773, "name": "com.fasterxml.jackson.databind.deser.builder.BuilderWithUnwrappedTest::testWithUnwrappedAndCreatorSingleParameterAtBeginning", "total_lines": 44 }, { "covered_lines": 21, "line_coverage": 0.4773, "name": "com.fasterxml.jackson....
493
JacksonDatabind
77
{ "fields": [ { "modifier": "", "original_string": "private static final long serialVersionUID = 1;", "type": "long", "var_name": "serialVersionUID" }, { "modifier": "", "original_string": "private final static Class<?>[] INIT_CAUSE_PARAMS = new Class<?>[] { Throwable.c...
{ "body": "@Override\n public JsonDeserializer<Object> createBeanDeserializer(DeserializationContext ctxt,\n JavaType type, BeanDescription beanDesc)\n throws JsonMappingException\n {\n final DeserializationConfig config = ctxt.getConfig();\n // We may also have custom overrides:...
[ { "covered_lines": 12, "line_coverage": 0.7059, "name": "com.fasterxml.jackson.databind.interop.IllegalTypesCheckTest::testIssue1599", "total_lines": 17 } ]
494
JacksonDatabind
78
{ "fields": [ { "modifier": "", "original_string": "private static final long serialVersionUID = 1;", "type": "long", "var_name": "serialVersionUID" }, { "modifier": "", "original_string": "private final static Class<?>[] INIT_CAUSE_PARAMS = new Class<?>[] { Throwable.c...
{ "body": "@Override\n public JsonDeserializer<Object> createBeanDeserializer(DeserializationContext ctxt,\n JavaType type, BeanDescription beanDesc)\n throws JsonMappingException\n {\n final DeserializationConfig config = ctxt.getConfig();\n // We may also have custom overrides:...
[ { "covered_lines": 12, "line_coverage": 0.7059, "name": "com.fasterxml.jackson.databind.interop.IllegalTypesCheckTest::testIssue1599", "total_lines": 17 } ]
495
JacksonDatabind
79
{ "fields": [ { "modifier": "", "original_string": "protected final static PropertyName NAME_FOR_OBJECT_REF = new PropertyName(\"#object-ref\");", "type": "PropertyName", "var_name": "NAME_FOR_OBJECT_REF" }, { "modifier": "", "original_string": "final protected static B...
{ "body": "@SuppressWarnings(\"incomplete-switch\")\n @Override\n public JsonSerializer<?> createContextual(SerializerProvider provider,\n BeanProperty property)\n throws JsonMappingException\n {\n final AnnotationIntrospector intr = provider.getAnnotationIntrospector();\n fin...
[ { "covered_lines": 32, "line_coverage": 0.4384, "name": "com.fasterxml.jackson.databind.objectid.AlwaysAsReferenceFirstTest::testIssue1607", "total_lines": 73 } ]
496
JacksonDatabind
79
{ "fields": [ { "modifier": "", "original_string": "private static final long serialVersionUID = 1L;", "type": "long", "var_name": "serialVersionUID" }, { "modifier": "@SuppressWarnings(\"unchecked\")", "original_string": "@SuppressWarnings(\"unchecked\")\n private f...
{ "body": "@Override\n public ObjectIdInfo findObjectReferenceInfo(Annotated ann, ObjectIdInfo objectIdInfo) {\n JsonIdentityReference ref = _findAnnotation(ann, JsonIdentityReference.class);\n if (ref == null) {\n return objectIdInfo;\n }\n if (objectIdInfo == null) {\n ...
[ { "covered_lines": 4, "line_coverage": 1, "name": "com.fasterxml.jackson.databind.objectid.AlwaysAsReferenceFirstTest::testIssue1607", "total_lines": 4 } ]
497
JacksonDatabind
80
{ "fields": [ { "modifier": "", "original_string": "private static final long serialVersionUID = 1L;", "type": "long", "var_name": "serialVersionUID" }, { "modifier": "", "original_string": "protected LinkedHashSet<NamedType> _registeredSubtypes;", "type": "Linked...
{ "body": "@Override\n public Collection<NamedType> collectAndResolveSubtypesByTypeId(MapperConfig<?> config, \n AnnotatedMember property, JavaType baseType)\n {\n final AnnotationIntrospector ai = config.getAnnotationIntrospector();\n Class<?> rawBase = baseType.getRawClass();\n\n ...
[ { "covered_lines": 8, "line_coverage": 0.381, "name": "com.fasterxml.jackson.databind.jsontype.TestTypeNames::testBaseTypeId1616", "total_lines": 21 } ]
498
JacksonDatabind
81
{ "fields": [ { "modifier": "", "original_string": "private static final long serialVersionUID = 1L;", "type": "long", "var_name": "serialVersionUID" }, { "modifier": "@SuppressWarnings(\"unchecked\")", "original_string": "@SuppressWarnings(\"unchecked\")\n private f...
{ "body": "@Override\n public JavaType refineSerializationType(final MapperConfig<?> config,\n final Annotated a, final JavaType baseType) throws JsonMappingException\n {\n JavaType type = baseType;\n final TypeFactory tf = config.getTypeFactory();\n\n final JsonSerialize jsonSer...
[ { "covered_lines": 16, "line_coverage": 0.2623, "name": "com.fasterxml.jackson.databind.introspect.TypeCoercion1592Test::testTypeCoercion1592", "total_lines": 61 } ]
499
JacksonDatabind
82
{ "fields": [ { "modifier": "", "original_string": "private static final long serialVersionUID = 1;", "type": "long", "var_name": "serialVersionUID" }, { "modifier": "", "original_string": "private final static Class<?>[] INIT_CAUSE_PARAMS = new Class<?>[] { Throwable.c...
{ "body": "protected void addBeanProps(DeserializationContext ctxt,\n BeanDescription beanDesc, BeanDeserializerBuilder builder)\n throws JsonMappingException\n {\n final boolean isConcrete = !beanDesc.getType().isAbstract();\n final SettableBeanProperty[] creatorProps = isConcrete\...
[ { "covered_lines": 44, "line_coverage": 0.55, "name": "com.fasterxml.jackson.databind.filter.IgnorePropertyOnDeserTest::testIgnoreGetterNotSetter1595", "total_lines": 80 } ]
500
JacksonDatabind
83
{ "fields": [], "file": "src/main/java/com/fasterxml/jackson/databind/deser/std/FromStringDeserializer.java", "identifier": "FromStringDeserializer", "interfaces": "", "superclass": "StdScalarDeserializer<T>" }
{ "body": "@SuppressWarnings(\"unchecked\")\n @Override\n public T deserialize(JsonParser p, DeserializationContext ctxt) throws IOException\n {\n // 22-Sep-2012, tatu: For 2.1, use this new method, may force coercion:\n String text = p.getValueAsString();\n if (text != null) { // has St...
[ { "covered_lines": 11, "line_coverage": 0.3438, "name": "com.fasterxml.jackson.databind.filter.ProblemHandlerTest::testWeirdStringHandling", "total_lines": 32 } ]