This mapping has 1 multi-map group: several pairings are equally correct there. The code view shows one arbitrary valid pairing, not the only one.

Code view:

A painting is a person's account of this edit as text, recorded independently of the node mapping - a rendering often has several equally defensible answers where the mapping has one. Deletions and insertions carry no position on the opposite side in a painting, so that panel draws no caret for them.

Before

…lines 1–470 unchanged (470 lines)
471 {
472 // first: let's check class for the instance itself:
473 AnnotationIntrospector intr = ctxt.getAnnotationIntrospector();
474 Class<?> subclass = intr.findDeserializationType(a, type);
475 if (subclass != null) {
476 try {
477 type = type.narrowBy(subclass);
478 } catch (IllegalArgumentException iae) {
479 throw new JsonMappingException("Failed to narrow type "+type+" with concrete-type annotation (value "+subclass.getName()+"), method '"+a.getName()+"': "+iae.getMessage(), null, iae);
480 }
481 }
482
483 // then key class
…lines 484–608 unchanged (125 lines)

After

…lines 1–470 unchanged (470 lines)
471 {
472 // first: let's check class for the instance itself:
473 AnnotationIntrospector intr = ctxt.getAnnotationIntrospector();
474 Class<?> subclass = intr.findDeserializationType(a, type);
475 if (subclass != null) {
476 try {
477 type = ctxt.getTypeFactory().constructSpecializedType(type, subclass);
478 } catch (IllegalArgumentException iae) {
479 throw new JsonMappingException("Failed to narrow type "+type+" with concrete-type annotation (value "+subclass.getName()+"), method '"+a.getName()+"': "+iae.getMessage(), null, iae);
480 }
481 }
482
483 // then key class
…lines 484–608 unchanged (125 lines)

Before

program
package_declaration
package "package"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "fasterxml"
. "."
identifier "jackson"
. "."
identifier "databind"
. "."
identifier "deser"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "util"
. "."
identifier "HashMap"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "util"
. "."
identifier "concurrent"
. "."
identifier "ConcurrentHashMap"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "fasterxml"
. "."
identifier "jackson"
. "."
identifier "annotation"
. "."
identifier "JsonFormat"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "fasterxml"
. "."
identifier "jackson"
. "."
identifier "databind"
. "."
asterisk
* "*"
; ";"
import_declaration (+22 nodes collapsed)
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "fasterxml"
. "."
identifier "jackson"
. "."
identifier "databind"
. "."
identifier "introspect"
. "."
identifier "Annotated"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "fasterxml"
. "."
identifier "jackson"
. "."
identifier "databind"
. "."
identifier "type"
. "."
asterisk
* "*"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "fasterxml"
. "."
identifier "jackson"
. "."
identifier "databind"
. "."
identifier "util"
. "."
identifier "ClassUtil"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "fasterxml"
. "."
identifier "jackson"
. "."
identifier "databind"
. "."
identifier "util"
. "."
identifier "Converter"
; ";"
block_comment "/**\n * Class that defines caching layer between callers (lik"...
class_declaration
modifiers
public "public"
final "final"
class "class"
identifier "DeserializerCache"
super_interfaces
implements "implements"
type_list
scoped_type_identifier
scoped_type_identifier
type_identifier "java"
. "."
type_identifier "io"
. "."
type_identifier "Serializable"
line_comment "// since 2.1 -- needs to be careful tho"
class_body
{ "{"
field_declaration
modifiers
private "private"
static "static"
final "final"
integral_type
long "long"
variable_declarator
identifier "serialVersionUID"
= "="
decimal_integer_literal "1L"
; ";"
block_comment "/*\n /****************************************************"...
block_comment "/**\n * We will also cache some dynamically constructed d"...
field_declaration (+44 nodes collapsed)
block_comment "/**\n * During deserializer construction process we may n"...
field_declaration (+40 nodes collapsed)
block_comment "/*\n /****************************************************"...
constructor_declaration
modifiers
public "public"
identifier "DeserializerCache"
formal_parameters
( "("
) ")"
constructor_body
{ "{"
} "}"
block_comment "/*\n /****************************************************"...
method_declaration (+24 nodes collapsed)
block_comment "/*\n /****************************************************"...
block_comment "/**\n * Method that can be used to determine how many des"...
method_declaration (+22 nodes collapsed)
block_comment "/**\n * Method that will drop all dynamically constructed"...
method_declaration
modifiers
public "public"
void_type "void"
identifier "flushCachedDeserializers"
formal_parameters
( "("
) ")"
block
{ "{"
expression_statement
method_invocation
identifier "_cachedDeserializers"
. "."
identifier "clear"
argument_list
( "("
) ")"
; ";"
} "}"
block_comment "/*\n /****************************************************"...
block_comment "/**\n * Method called to get hold of a deserializer for a"...
method_declaration (+103 nodes collapsed)
block_comment "/**\n * Method called to get hold of a deserializer to us"...
method_declaration (+97 nodes collapsed)
block_comment "/**\n * Method called to find out whether provider would "...
method_declaration (+80 nodes collapsed)
block_comment "/*\n /****************************************************"...
method_declaration (+73 nodes collapsed)
block_comment "/**\n * Method that will try to create a deserializer for"...
method_declaration (+188 nodes collapsed)
block_comment "/**\n * Method that handles actual construction (via fact"...
method_declaration (+223 nodes collapsed)
block_comment "/*\n /****************************************************"...
block_comment "/**\n * Method that does the heavy lifting of checking fo"...
method_declaration (+419 nodes collapsed)
method_declaration (+383 nodes collapsed)
block_comment "/**\n * Helper method called to check if a class or metho"...
method_declaration (+97 nodes collapsed)
block_comment "/**\n * Helper method that will check whether given annot"...
method_declaration (+120 nodes collapsed)
method_declaration (+77 nodes collapsed)
block_comment "/**\n * Method called to see if given method has annotati"...
method_declaration
modifiers
private "private"
type_identifier "JavaType"
identifier "modifyTypeByAnnotation"
formal_parameters
( "("
formal_parameter
type_identifier "DeserializationContext"
identifier "ctxt"
, ","
formal_parameter
type_identifier "Annotated"
identifier "a"
, ","
formal_parameter
type_identifier "JavaType"
identifier "type"
) ")"
throws
throws "throws"
type_identifier "JsonMappingException"
block
{ "{"
line_comment "// first: let's check class for the instance itself:"
local_variable_declaration
type_identifier "AnnotationIntrospector"
variable_declarator
identifier "intr"
= "="
method_invocation
identifier "ctxt"
. "."
identifier "getAnnotationIntrospector"
argument_list
( "("
) ")"
; ";"
local_variable_declaration (+22 nodes collapsed)
if_statement
if "if"
parenthesized_expression
( "("
binary_expression
identifier "subclass"
!= "!="
null_literal "null"
) ")"
block
{ "{"
try_statement
try "try"
block
{ "{"
expression_statement
assignment_expression
identifier "type"
= "="
method_invocation any 1:2
identifier "type"
. "."
identifier "narrowBy"
argument_list
( "("
identifier "subclass"
) ")"
; ";"
} "}"
catch_clause (+76 nodes collapsed)
} "}"
line_comment "// then key class"
if_statement (+619 nodes collapsed)
return_statement
return "return"
identifier "type"
; ";"
} "}"
block_comment "/*\n /****************************************************"...
block_comment "/**\n * Helper method used to prevent both caching and ca"...
method_declaration (+89 nodes collapsed)
method_declaration (+163 nodes collapsed)
block_comment "/*\n /****************************************************"...
method_declaration (+92 nodes collapsed)
method_declaration (+33 nodes collapsed)
} "}"

After

program
package_declaration
package "package"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "fasterxml"
. "."
identifier "jackson"
. "."
identifier "databind"
. "."
identifier "deser"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "util"
. "."
identifier "HashMap"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "util"
. "."
identifier "concurrent"
. "."
identifier "ConcurrentHashMap"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "fasterxml"
. "."
identifier "jackson"
. "."
identifier "annotation"
. "."
identifier "JsonFormat"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "fasterxml"
. "."
identifier "jackson"
. "."
identifier "databind"
. "."
asterisk
* "*"
; ";"
import_declaration (+22 nodes collapsed)
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "fasterxml"
. "."
identifier "jackson"
. "."
identifier "databind"
. "."
identifier "introspect"
. "."
identifier "Annotated"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "fasterxml"
. "."
identifier "jackson"
. "."
identifier "databind"
. "."
identifier "type"
. "."
asterisk
* "*"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "fasterxml"
. "."
identifier "jackson"
. "."
identifier "databind"
. "."
identifier "util"
. "."
identifier "ClassUtil"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "fasterxml"
. "."
identifier "jackson"
. "."
identifier "databind"
. "."
identifier "util"
. "."
identifier "Converter"
; ";"
block_comment "/**\n * Class that defines caching layer between callers (lik"...
class_declaration
modifiers
public "public"
final "final"
class "class"
identifier "DeserializerCache"
super_interfaces
implements "implements"
type_list
scoped_type_identifier
scoped_type_identifier
type_identifier "java"
. "."
type_identifier "io"
. "."
type_identifier "Serializable"
line_comment "// since 2.1 -- needs to be careful tho"
class_body
{ "{"
field_declaration
modifiers
private "private"
static "static"
final "final"
integral_type
long "long"
variable_declarator
identifier "serialVersionUID"
= "="
decimal_integer_literal "1L"
; ";"
block_comment "/*\n /****************************************************"...
block_comment "/**\n * We will also cache some dynamically constructed d"...
field_declaration (+44 nodes collapsed)
block_comment "/**\n * During deserializer construction process we may n"...
field_declaration (+40 nodes collapsed)
block_comment "/*\n /****************************************************"...
constructor_declaration
modifiers
public "public"
identifier "DeserializerCache"
formal_parameters
( "("
) ")"
constructor_body
{ "{"
} "}"
block_comment "/*\n /****************************************************"...
method_declaration (+24 nodes collapsed)
block_comment "/*\n /****************************************************"...
block_comment "/**\n * Method that can be used to determine how many des"...
method_declaration (+22 nodes collapsed)
block_comment "/**\n * Method that will drop all dynamically constructed"...
method_declaration
modifiers
public "public"
void_type "void"
identifier "flushCachedDeserializers"
formal_parameters
( "("
) ")"
block
{ "{"
expression_statement
method_invocation
identifier "_cachedDeserializers"
. "."
identifier "clear"
argument_list
( "("
) ")"
; ";"
} "}"
block_comment "/*\n /****************************************************"...
block_comment "/**\n * Method called to get hold of a deserializer for a"...
method_declaration (+103 nodes collapsed)
block_comment "/**\n * Method called to get hold of a deserializer to us"...
method_declaration (+97 nodes collapsed)
block_comment "/**\n * Method called to find out whether provider would "...
method_declaration (+80 nodes collapsed)
block_comment "/*\n /****************************************************"...
method_declaration (+73 nodes collapsed)
block_comment "/**\n * Method that will try to create a deserializer for"...
method_declaration (+188 nodes collapsed)
block_comment "/**\n * Method that handles actual construction (via fact"...
method_declaration (+223 nodes collapsed)
block_comment "/*\n /****************************************************"...
block_comment "/**\n * Method that does the heavy lifting of checking fo"...
method_declaration (+419 nodes collapsed)
method_declaration (+383 nodes collapsed)
block_comment "/**\n * Helper method called to check if a class or metho"...
method_declaration (+97 nodes collapsed)
block_comment "/**\n * Helper method that will check whether given annot"...
method_declaration (+120 nodes collapsed)
method_declaration (+77 nodes collapsed)
block_comment "/**\n * Method called to see if given method has annotati"...
method_declaration
modifiers
private "private"
type_identifier "JavaType"
identifier "modifyTypeByAnnotation"
formal_parameters
( "("
formal_parameter
type_identifier "DeserializationContext"
identifier "ctxt"
, ","
formal_parameter
type_identifier "Annotated"
identifier "a"
, ","
formal_parameter
type_identifier "JavaType"
identifier "type"
) ")"
throws
throws "throws"
type_identifier "JsonMappingException"
block
{ "{"
line_comment "// first: let's check class for the instance itself:"
local_variable_declaration
type_identifier "AnnotationIntrospector"
variable_declarator
identifier "intr"
= "="
method_invocation
identifier "ctxt"
. "."
identifier "getAnnotationIntrospector"
argument_list
( "("
) ")"
; ";"
local_variable_declaration (+22 nodes collapsed)
if_statement
if "if"
parenthesized_expression
( "("
binary_expression
identifier "subclass"
!= "!="
null_literal "null"
) ")"
block
{ "{"
try_statement
try "try"
block
{ "{"
expression_statement
assignment_expression
identifier "type"
= "="
method_invocation any 1:2
method_invocation any 1:2
identifier "ctxt"
. "."
identifier "getTypeFactory"
argument_list
( "("
) ")"
. "."
identifier "constructSpecializedType"
argument_list
( "("
identifier "type"
, ","
identifier "subclass"
) ")"
; ";"
} "}"
catch_clause (+76 nodes collapsed)
} "}"
line_comment "// then key class"
if_statement (+619 nodes collapsed)
return_statement
return "return"
identifier "type"
; ";"
} "}"
block_comment "/*\n /****************************************************"...
block_comment "/**\n * Helper method used to prevent both caching and ca"...
method_declaration (+89 nodes collapsed)
method_declaration (+163 nodes collapsed)
block_comment "/*\n /****************************************************"...
method_declaration (+92 nodes collapsed)
method_declaration (+33 nodes collapsed)
} "}"