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–74 unchanged (74 lines)
75 {
76 if (_isInt) {
77 visitIntFormat(visitor, typeHint, JsonParser.NumberType.BIG_INTEGER);
78 } else {
79 Class<?> h = handledType();
80 if (h == BigDecimal.class) {
81 visitFloatFormat(visitor, typeHint, JsonParser.NumberType.BIG_INTEGER);
82 } else {
83 // otherwise bit unclear what to call... but let's try:
84 /*JsonNumberFormatVisitor v2 =*/ visitor.expectNumberFormat(typeHint);
85 }
86 }
87 }
88}

After

…lines 1–74 unchanged (74 lines)
75 {
76 if (_isInt) {
77 visitIntFormat(visitor, typeHint, JsonParser.NumberType.BIG_INTEGER);
78 } else {
79 Class<?> h = handledType();
80 if (h == BigDecimal.class) {
81 visitFloatFormat(visitor, typeHint, JsonParser.NumberType.BIG_DECIMAL);
82 } else {
83 // otherwise bit unclear what to call... but let's try:
84 /*JsonNumberFormatVisitor v2 =*/ visitor.expectNumberFormat(typeHint);
85 }
86 }
87 }
88}

Before

program
package_declaration
package "package"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "fasterxml"
. "."
identifier "jackson"
. "."
identifier "databind"
. "."
identifier "ser"
. "."
identifier "std"
; ";"
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 "java"
. "."
identifier "lang"
. "."
identifier "reflect"
. "."
identifier "Type"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "math"
. "."
identifier "BigDecimal"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "math"
. "."
identifier "BigInteger"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "fasterxml"
. "."
identifier "jackson"
. "."
identifier "core"
. "."
identifier "JsonGenerator"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "fasterxml"
. "."
identifier "jackson"
. "."
identifier "core"
. "."
identifier "JsonParser"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "fasterxml"
. "."
identifier "jackson"
. "."
identifier "databind"
. "."
asterisk
* "*"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "fasterxml"
. "."
identifier "jackson"
. "."
identifier "databind"
. "."
identifier "annotation"
. "."
identifier "JacksonStdImpl"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "fasterxml"
. "."
identifier "jackson"
. "."
identifier "databind"
. "."
identifier "jsonFormatVisitors"
. "."
identifier "JsonFormatVisitorWrapper"
; ";"
block_comment "/**\n * As a fallback, we may need to use this serializer for"...
class_declaration
modifiers
marker_annotation
@ "@"
identifier "JacksonStdImpl"
annotation
@ "@"
identifier "SuppressWarnings"
annotation_argument_list
( "("
string_literal
" "\""
string_fragment "serial"
" "\""
) ")"
public "public"
class "class"
identifier "NumberSerializer"
superclass
extends "extends"
generic_type
type_identifier "StdScalarSerializer"
type_arguments
< "<"
type_identifier "Number"
> ">"
class_body
{ "{"
block_comment "/**\n * Static instance that is only to be used for {@lin"...
field_declaration
modifiers
public "public"
final "final"
static "static"
type_identifier "NumberSerializer"
variable_declarator
identifier "instance"
= "="
object_creation_expression
new "new"
type_identifier "NumberSerializer"
argument_list
( "("
class_literal
type_identifier "Number"
. "."
class "class"
) ")"
; ";"
field_declaration
modifiers
protected "protected"
final "final"
boolean_type "boolean"
variable_declarator
identifier "_isInt"
; ";"
block_comment "/**\n * @since 2.5\n */"
constructor_declaration (+46 nodes collapsed)
method_declaration (+262 nodes collapsed)
method_declaration (+43 nodes collapsed)
method_declaration
modifiers
marker_annotation
@ "@"
identifier "Override"
public "public"
void_type "void"
identifier "acceptJsonFormatVisitor"
formal_parameters
( "("
formal_parameter
type_identifier "JsonFormatVisitorWrapper"
identifier "visitor"
, ","
formal_parameter
type_identifier "JavaType"
identifier "typeHint"
) ")"
throws
throws "throws"
type_identifier "JsonMappingException"
block
{ "{"
if_statement
if "if"
parenthesized_expression
( "("
identifier "_isInt"
) ")"
block (+21 nodes collapsed)
else "else"
block
{ "{"
local_variable_declaration
generic_type
type_identifier "Class"
type_arguments
< "<"
wildcard
? "?"
> ">"
variable_declarator
identifier "h"
= "="
method_invocation
identifier "handledType"
argument_list
( "("
) ")"
; ";"
if_statement
if "if"
parenthesized_expression
( "("
binary_expression
identifier "h"
== "=="
class_literal
type_identifier "BigDecimal"
. "."
class "class"
) ")"
block
{ "{"
expression_statement
method_invocation
identifier "visitFloatFormat"
argument_list
( "("
identifier "visitor"
, ","
identifier "typeHint"
, ","
field_access
field_access
identifier "JsonParser"
. "."
identifier "NumberType"
. "."
identifier "BIG_INTEGER"
) ")"
; ";"
} "}"
else "else"
block
{ "{"
line_comment "// otherwise bit unclear what to call... but let's try:"
block_comment "/*JsonNumberFormatVisitor v2 =*/"
expression_statement
method_invocation
identifier "visitor"
. "."
identifier "expectNumberFormat"
argument_list
( "("
identifier "typeHint"
) ")"
; ";"
} "}"
} "}"
} "}"
} "}"

After

program
package_declaration
package "package"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "fasterxml"
. "."
identifier "jackson"
. "."
identifier "databind"
. "."
identifier "ser"
. "."
identifier "std"
; ";"
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 "java"
. "."
identifier "lang"
. "."
identifier "reflect"
. "."
identifier "Type"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "math"
. "."
identifier "BigDecimal"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "math"
. "."
identifier "BigInteger"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "fasterxml"
. "."
identifier "jackson"
. "."
identifier "core"
. "."
identifier "JsonGenerator"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "fasterxml"
. "."
identifier "jackson"
. "."
identifier "core"
. "."
identifier "JsonParser"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "fasterxml"
. "."
identifier "jackson"
. "."
identifier "databind"
. "."
asterisk
* "*"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "fasterxml"
. "."
identifier "jackson"
. "."
identifier "databind"
. "."
identifier "annotation"
. "."
identifier "JacksonStdImpl"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "fasterxml"
. "."
identifier "jackson"
. "."
identifier "databind"
. "."
identifier "jsonFormatVisitors"
. "."
identifier "JsonFormatVisitorWrapper"
; ";"
block_comment "/**\n * As a fallback, we may need to use this serializer for"...
class_declaration
modifiers
marker_annotation
@ "@"
identifier "JacksonStdImpl"
annotation
@ "@"
identifier "SuppressWarnings"
annotation_argument_list
( "("
string_literal
" "\""
string_fragment "serial"
" "\""
) ")"
public "public"
class "class"
identifier "NumberSerializer"
superclass
extends "extends"
generic_type
type_identifier "StdScalarSerializer"
type_arguments
< "<"
type_identifier "Number"
> ">"
class_body
{ "{"
block_comment "/**\n * Static instance that is only to be used for {@lin"...
field_declaration
modifiers
public "public"
final "final"
static "static"
type_identifier "NumberSerializer"
variable_declarator
identifier "instance"
= "="
object_creation_expression
new "new"
type_identifier "NumberSerializer"
argument_list
( "("
class_literal
type_identifier "Number"
. "."
class "class"
) ")"
; ";"
field_declaration
modifiers
protected "protected"
final "final"
boolean_type "boolean"
variable_declarator
identifier "_isInt"
; ";"
block_comment "/**\n * @since 2.5\n */"
constructor_declaration (+46 nodes collapsed)
method_declaration (+262 nodes collapsed)
method_declaration (+43 nodes collapsed)
method_declaration
modifiers
marker_annotation
@ "@"
identifier "Override"
public "public"
void_type "void"
identifier "acceptJsonFormatVisitor"
formal_parameters
( "("
formal_parameter
type_identifier "JsonFormatVisitorWrapper"
identifier "visitor"
, ","
formal_parameter
type_identifier "JavaType"
identifier "typeHint"
) ")"
throws
throws "throws"
type_identifier "JsonMappingException"
block
{ "{"
if_statement
if "if"
parenthesized_expression
( "("
identifier "_isInt"
) ")"
block (+21 nodes collapsed)
else "else"
block
{ "{"
local_variable_declaration
generic_type
type_identifier "Class"
type_arguments
< "<"
wildcard
? "?"
> ">"
variable_declarator
identifier "h"
= "="
method_invocation
identifier "handledType"
argument_list
( "("
) ")"
; ";"
if_statement
if "if"
parenthesized_expression
( "("
binary_expression
identifier "h"
== "=="
class_literal
type_identifier "BigDecimal"
. "."
class "class"
) ")"
block
{ "{"
expression_statement
method_invocation
identifier "visitFloatFormat"
argument_list
( "("
identifier "visitor"
, ","
identifier "typeHint"
, ","
field_access
field_access
identifier "JsonParser"
. "."
identifier "NumberType"
. "."
identifier "BIG_DECIMAL"
) ")"
; ";"
} "}"
else "else"
block
{ "{"
line_comment "// otherwise bit unclear what to call... but let's try:"
block_comment "/*JsonNumberFormatVisitor v2 =*/"
expression_statement
method_invocation
identifier "visitor"
. "."
identifier "expectNumberFormat"
argument_list
( "("
identifier "typeHint"
) ")"
; ";"
} "}"
} "}"
} "}"
} "}"