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–52 unchanged (52 lines)
53 * @since 2.8.9
54 */
55 protected XmlSerializerProvider(XmlSerializerProvider src) {
56 super(src);
57 // 21-May-2018, tatu: As per [dataformat-xml#282], should NOT really copy
58 // root name lookup as that may link back to diff version, configuration
59 _rootNameLookup = src._rootNameLookup;
60 }
61
62 /*
63 /**********************************************************************
64 /* Overridden methods
65 /**********************************************************************
…lines 66–245 unchanged (180 lines)

After

…lines 1–52 unchanged (52 lines)
53 * @since 2.8.9
54 */
55 protected XmlSerializerProvider(XmlSerializerProvider src) {
56 super(src);
57 // 21-May-2018, tatu: As per [dataformat-xml#282], should NOT really copy
58 // root name lookup as that may link back to diff version, configuration
59 _rootNameLookup = new XmlRootNameLookup();
60 }
61
62 /*
63 /**********************************************************************
64 /* Overridden methods
65 /**********************************************************************
…lines 66–245 unchanged (180 lines)

Before

program
package_declaration
package "package"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "fasterxml"
. "."
identifier "jackson"
. "."
identifier "dataformat"
. "."
identifier "xml"
. "."
identifier "ser"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "io"
. "."
identifier "IOException"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "javax"
. "."
identifier "xml"
. "."
identifier "namespace"
. "."
identifier "QName"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "javax"
. "."
identifier "xml"
. "."
identifier "stream"
. "."
identifier "XMLStreamException"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "fasterxml"
. "."
identifier "jackson"
. "."
identifier "core"
. "."
asterisk
* "*"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "fasterxml"
. "."
identifier "jackson"
. "."
identifier "databind"
. "."
identifier "JavaType"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "fasterxml"
. "."
identifier "jackson"
. "."
identifier "databind"
. "."
identifier "JsonMappingException"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "fasterxml"
. "."
identifier "jackson"
. "."
identifier "databind"
. "."
identifier "JsonSerializer"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "fasterxml"
. "."
identifier "jackson"
. "."
identifier "databind"
. "."
identifier "PropertyName"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "fasterxml"
. "."
identifier "jackson"
. "."
identifier "databind"
. "."
identifier "SerializationConfig"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "fasterxml"
. "."
identifier "jackson"
. "."
identifier "databind"
. "."
identifier "ser"
. "."
identifier "SerializerFactory"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "fasterxml"
. "."
identifier "jackson"
. "."
identifier "databind"
. "."
identifier "ser"
. "."
identifier "DefaultSerializerProvider"
; ";"
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 "TokenBuffer"
; ";"
import_declaration (+22 nodes collapsed)
import_declaration (+22 nodes collapsed)
import_declaration (+22 nodes collapsed)
block_comment "/**\n * We need to override some parts of\n * {@link com.faste"...
class_declaration
modifiers
public "public"
class "class"
identifier "XmlSerializerProvider"
superclass
extends "extends"
type_identifier "DefaultSerializerProvider"
class_body
{ "{"
line_comment "// As of 2.7"
field_declaration
modifiers
private "private"
static "static"
final "final"
integral_type
long "long"
variable_declarator
identifier "serialVersionUID"
= "="
decimal_integer_literal "1L"
; ";"
block_comment "/**\n * If all we get to serialize is a null, there's no "...
field_declaration
modifiers
protected "protected"
final "final"
static "static"
type_identifier "QName"
variable_declarator
identifier "ROOT_NAME_FOR_NULL"
= "="
object_creation_expression
new "new"
type_identifier "QName"
argument_list
( "("
string_literal
" "\""
string_fragment "null"
" "\""
) ")"
; ";"
field_declaration
modifiers
protected "protected"
final "final"
type_identifier "XmlRootNameLookup"
variable_declarator
identifier "_rootNameLookup"
; ";"
constructor_declaration (+25 nodes collapsed)
constructor_declaration (+41 nodes collapsed)
block_comment "/**\n * @since 2.8.9\n */"
constructor_declaration
modifiers
protected "protected"
identifier "XmlSerializerProvider"
formal_parameters
( "("
formal_parameter
type_identifier "XmlSerializerProvider"
identifier "src"
) ")"
constructor_body
{ "{"
explicit_constructor_invocation
super "super"
argument_list
( "("
identifier "src"
) ")"
; ";"
line_comment "// 21-May-2018, tatu: As per [dataformat-xml#282], should NO"...
line_comment "// root name lookup as that may link back to diff version"...
expression_statement
assignment_expression
identifier "_rootNameLookup"
= "="
field_access
identifier "src"
. "."
identifier "_rootNameLookup"
; ";"
} "}"
block_comment "/*\n /****************************************************"...
method_declaration (+24 nodes collapsed)
method_declaration (+35 nodes collapsed)
method_declaration (+287 nodes collapsed)
line_comment "// @since 2.1"
method_declaration (+283 nodes collapsed)
method_declaration (+86 nodes collapsed)
method_declaration (+44 nodes collapsed)
method_declaration (+157 nodes collapsed)
method_declaration (+108 nodes collapsed)
method_declaration (+96 nodes collapsed)
method_declaration (+107 nodes collapsed)
} "}"

After

program
package_declaration
package "package"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "fasterxml"
. "."
identifier "jackson"
. "."
identifier "dataformat"
. "."
identifier "xml"
. "."
identifier "ser"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "io"
. "."
identifier "IOException"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "javax"
. "."
identifier "xml"
. "."
identifier "namespace"
. "."
identifier "QName"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "javax"
. "."
identifier "xml"
. "."
identifier "stream"
. "."
identifier "XMLStreamException"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "fasterxml"
. "."
identifier "jackson"
. "."
identifier "core"
. "."
asterisk
* "*"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "fasterxml"
. "."
identifier "jackson"
. "."
identifier "databind"
. "."
identifier "JavaType"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "fasterxml"
. "."
identifier "jackson"
. "."
identifier "databind"
. "."
identifier "JsonMappingException"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "fasterxml"
. "."
identifier "jackson"
. "."
identifier "databind"
. "."
identifier "JsonSerializer"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "fasterxml"
. "."
identifier "jackson"
. "."
identifier "databind"
. "."
identifier "PropertyName"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "fasterxml"
. "."
identifier "jackson"
. "."
identifier "databind"
. "."
identifier "SerializationConfig"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "fasterxml"
. "."
identifier "jackson"
. "."
identifier "databind"
. "."
identifier "ser"
. "."
identifier "SerializerFactory"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "fasterxml"
. "."
identifier "jackson"
. "."
identifier "databind"
. "."
identifier "ser"
. "."
identifier "DefaultSerializerProvider"
; ";"
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 "TokenBuffer"
; ";"
import_declaration (+22 nodes collapsed)
import_declaration (+22 nodes collapsed)
import_declaration (+22 nodes collapsed)
block_comment "/**\n * We need to override some parts of\n * {@link com.faste"...
class_declaration
modifiers
public "public"
class "class"
identifier "XmlSerializerProvider"
superclass
extends "extends"
type_identifier "DefaultSerializerProvider"
class_body
{ "{"
line_comment "// As of 2.7"
field_declaration
modifiers
private "private"
static "static"
final "final"
integral_type
long "long"
variable_declarator
identifier "serialVersionUID"
= "="
decimal_integer_literal "1L"
; ";"
block_comment "/**\n * If all we get to serialize is a null, there's no "...
field_declaration
modifiers
protected "protected"
final "final"
static "static"
type_identifier "QName"
variable_declarator
identifier "ROOT_NAME_FOR_NULL"
= "="
object_creation_expression
new "new"
type_identifier "QName"
argument_list
( "("
string_literal
" "\""
string_fragment "null"
" "\""
) ")"
; ";"
field_declaration
modifiers
protected "protected"
final "final"
type_identifier "XmlRootNameLookup"
variable_declarator
identifier "_rootNameLookup"
; ";"
constructor_declaration (+25 nodes collapsed)
constructor_declaration (+41 nodes collapsed)
block_comment "/**\n * @since 2.8.9\n */"
constructor_declaration
modifiers
protected "protected"
identifier "XmlSerializerProvider"
formal_parameters
( "("
formal_parameter
type_identifier "XmlSerializerProvider"
identifier "src"
) ")"
constructor_body
{ "{"
explicit_constructor_invocation
super "super"
argument_list
( "("
identifier "src"
) ")"
; ";"
line_comment "// 21-May-2018, tatu: As per [dataformat-xml#282], should NO"...
line_comment "// root name lookup as that may link back to diff version"...
expression_statement
assignment_expression
identifier "_rootNameLookup"
= "="
object_creation_expression
new "new"
type_identifier "XmlRootNameLookup"
argument_list
( "("
) ")"
; ";"
} "}"
block_comment "/*\n /****************************************************"...
method_declaration (+24 nodes collapsed)
method_declaration (+35 nodes collapsed)
method_declaration (+287 nodes collapsed)
line_comment "// @since 2.1"
method_declaration (+283 nodes collapsed)
method_declaration (+86 nodes collapsed)
method_declaration (+44 nodes collapsed)
method_declaration (+157 nodes collapsed)
method_declaration (+108 nodes collapsed)
method_declaration (+96 nodes collapsed)
method_declaration (+107 nodes collapsed)
} "}"