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–162 unchanged (162 lines)
163 protected String buildCanonicalName()
164 {
165 StringBuilder sb = new StringBuilder();
166 sb.append(_class.getName());
167 sb.append('<');
168 sb.append(_referencedType.toCanonical());
169 return sb.toString();
170 }
171
172 /*
173 /**********************************************************
174 /* Narrow/widen
175 /**********************************************************
…lines 176–281 unchanged (106 lines)

After

…lines 1–162 unchanged (162 lines)
163 protected String buildCanonicalName()
164 {
165 StringBuilder sb = new StringBuilder();
166 sb.append(_class.getName());
167 sb.append('<');
168 sb.append(_referencedType.toCanonical());
169 sb.append('>');
170 return sb.toString();
171 }
172
173 /*
174 /**********************************************************
175 /* Narrow/widen
…lines 176–282 unchanged (107 lines)

Before

program
package_declaration
package "package"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "fasterxml"
. "."
identifier "jackson"
. "."
identifier "databind"
. "."
identifier "type"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "fasterxml"
. "."
identifier "jackson"
. "."
identifier "databind"
. "."
identifier "JavaType"
; ";"
block_comment "/**\n * Specialized {@link SimpleType} for types that are ref"...
class_declaration
modifiers
public "public"
class "class"
identifier "ReferenceType"
superclass
extends "extends"
type_identifier "SimpleType"
class_body
{ "{"
field_declaration
modifiers
private "private"
static "static"
final "final"
integral_type
long "long"
variable_declarator
identifier "serialVersionUID"
= "="
decimal_integer_literal "1L"
; ";"
field_declaration
modifiers
protected "protected"
final "final"
type_identifier "JavaType"
variable_declarator
identifier "_referencedType"
; ";"
block_comment "/**\n * Essential type used for type ids, for example if "...
field_declaration
modifiers
protected "protected"
final "final"
type_identifier "JavaType"
variable_declarator
identifier "_anchorType"
; ";"
constructor_declaration (+105 nodes collapsed)
block_comment "/**\n * Constructor used when upgrading into this type (v"...
constructor_declaration (+37 nodes collapsed)
block_comment "/**\n * Factory method that can be used to \"upgrade\" a ba"...
method_declaration (+96 nodes collapsed)
block_comment "/**\n * @since 2.7\n */"
method_declaration (+67 nodes collapsed)
method_declaration (+62 nodes collapsed)
method_declaration (+59 nodes collapsed)
method_declaration (+59 nodes collapsed)
method_declaration (+76 nodes collapsed)
method_declaration (+59 nodes collapsed)
method_declaration (+83 nodes collapsed)
method_declaration (+59 nodes collapsed)
method_declaration (+65 nodes collapsed)
method_declaration
modifiers
marker_annotation
@ "@"
identifier "Override"
protected "protected"
type_identifier "String"
identifier "buildCanonicalName"
formal_parameters
( "("
) ")"
block
{ "{"
local_variable_declaration
type_identifier "StringBuilder"
variable_declarator
identifier "sb"
= "="
object_creation_expression
new "new"
type_identifier "StringBuilder"
argument_list
( "("
) ")"
; ";"
expression_statement
method_invocation
identifier "sb"
. "."
identifier "append"
argument_list
( "("
method_invocation
identifier "_class"
. "."
identifier "getName"
argument_list
( "("
) ")"
) ")"
; ";"
expression_statement
method_invocation
identifier "sb"
. "."
identifier "append"
argument_list
( "("
character_literal "'<'"
) ")"
; ";"
expression_statement
method_invocation
identifier "sb"
. "."
identifier "append"
argument_list
( "("
method_invocation
identifier "_referencedType"
. "."
identifier "toCanonical"
argument_list
( "("
) ")"
) ")"
; ";"
return_statement
return "return"
method_invocation
identifier "sb"
. "."
identifier "toString"
argument_list
( "("
) ")"
; ";"
} "}"
block_comment "/*\n /****************************************************"...
method_declaration (+54 nodes collapsed)
block_comment "/*\n /****************************************************"...
method_declaration
modifiers
marker_annotation
@ "@"
identifier "Override"
public "public"
type_identifier "JavaType"
identifier "getContentType"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
identifier "_referencedType"
; ";"
} "}"
method_declaration
modifiers
marker_annotation
@ "@"
identifier "Override"
public "public"
type_identifier "JavaType"
identifier "getReferencedType"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
identifier "_referencedType"
; ";"
} "}"
method_declaration
modifiers
marker_annotation
@ "@"
identifier "Override"
public "public"
boolean_type "boolean"
identifier "hasContentType"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
true "true"
; ";"
} "}"
method_declaration
modifiers
marker_annotation
@ "@"
identifier "Override"
public "public"
boolean_type "boolean"
identifier "isReferenceType"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
true "true"
; ";"
} "}"
method_declaration (+30 nodes collapsed)
method_declaration (+69 nodes collapsed)
block_comment "/*\n /****************************************************"...
method_declaration
modifiers
public "public"
type_identifier "JavaType"
identifier "getAnchorType"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
identifier "_anchorType"
; ";"
} "}"
block_comment "/**\n * Convenience accessor that allows checking whether"...
method_declaration (+21 nodes collapsed)
block_comment "/*\n /****************************************************"...
method_declaration (+79 nodes collapsed)
method_declaration (+108 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 "type"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "fasterxml"
. "."
identifier "jackson"
. "."
identifier "databind"
. "."
identifier "JavaType"
; ";"
block_comment "/**\n * Specialized {@link SimpleType} for types that are ref"...
class_declaration
modifiers
public "public"
class "class"
identifier "ReferenceType"
superclass
extends "extends"
type_identifier "SimpleType"
class_body
{ "{"
field_declaration
modifiers
private "private"
static "static"
final "final"
integral_type
long "long"
variable_declarator
identifier "serialVersionUID"
= "="
decimal_integer_literal "1L"
; ";"
field_declaration
modifiers
protected "protected"
final "final"
type_identifier "JavaType"
variable_declarator
identifier "_referencedType"
; ";"
block_comment "/**\n * Essential type used for type ids, for example if "...
field_declaration
modifiers
protected "protected"
final "final"
type_identifier "JavaType"
variable_declarator
identifier "_anchorType"
; ";"
constructor_declaration (+105 nodes collapsed)
block_comment "/**\n * Constructor used when upgrading into this type (v"...
constructor_declaration (+37 nodes collapsed)
block_comment "/**\n * Factory method that can be used to \"upgrade\" a ba"...
method_declaration (+96 nodes collapsed)
block_comment "/**\n * @since 2.7\n */"
method_declaration (+67 nodes collapsed)
method_declaration (+62 nodes collapsed)
method_declaration (+59 nodes collapsed)
method_declaration (+59 nodes collapsed)
method_declaration (+76 nodes collapsed)
method_declaration (+59 nodes collapsed)
method_declaration (+83 nodes collapsed)
method_declaration (+59 nodes collapsed)
method_declaration (+65 nodes collapsed)
method_declaration
modifiers
marker_annotation
@ "@"
identifier "Override"
protected "protected"
type_identifier "String"
identifier "buildCanonicalName"
formal_parameters
( "("
) ")"
block
{ "{"
local_variable_declaration
type_identifier "StringBuilder"
variable_declarator
identifier "sb"
= "="
object_creation_expression
new "new"
type_identifier "StringBuilder"
argument_list
( "("
) ")"
; ";"
expression_statement
method_invocation
identifier "sb"
. "."
identifier "append"
argument_list
( "("
method_invocation
identifier "_class"
. "."
identifier "getName"
argument_list
( "("
) ")"
) ")"
; ";"
expression_statement
method_invocation
identifier "sb"
. "."
identifier "append"
argument_list
( "("
character_literal "'<'"
) ")"
; ";"
expression_statement
method_invocation
identifier "sb"
. "."
identifier "append"
argument_list
( "("
method_invocation
identifier "_referencedType"
. "."
identifier "toCanonical"
argument_list
( "("
) ")"
) ")"
; ";"
expression_statement
method_invocation
identifier "sb"
. "."
identifier "append"
argument_list
( "("
character_literal "'>'"
) ")"
; ";"
return_statement
return "return"
method_invocation
identifier "sb"
. "."
identifier "toString"
argument_list
( "("
) ")"
; ";"
} "}"
block_comment "/*\n /****************************************************"...
method_declaration (+54 nodes collapsed)
block_comment "/*\n /****************************************************"...
method_declaration
modifiers
marker_annotation
@ "@"
identifier "Override"
public "public"
type_identifier "JavaType"
identifier "getContentType"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
identifier "_referencedType"
; ";"
} "}"
method_declaration
modifiers
marker_annotation
@ "@"
identifier "Override"
public "public"
type_identifier "JavaType"
identifier "getReferencedType"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
identifier "_referencedType"
; ";"
} "}"
method_declaration
modifiers
marker_annotation
@ "@"
identifier "Override"
public "public"
boolean_type "boolean"
identifier "hasContentType"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
true "true"
; ";"
} "}"
method_declaration
modifiers
marker_annotation
@ "@"
identifier "Override"
public "public"
boolean_type "boolean"
identifier "isReferenceType"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
true "true"
; ";"
} "}"
method_declaration (+30 nodes collapsed)
method_declaration (+69 nodes collapsed)
block_comment "/*\n /****************************************************"...
method_declaration
modifiers
public "public"
type_identifier "JavaType"
identifier "getAnchorType"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
identifier "_anchorType"
; ";"
} "}"
block_comment "/**\n * Convenience accessor that allows checking whether"...
method_declaration (+21 nodes collapsed)
block_comment "/*\n /****************************************************"...
method_declaration (+79 nodes collapsed)
method_declaration (+108 nodes collapsed)
} "}"