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–105 unchanged (105 lines)
106
107 protected final boolean _add(Annotation ann) {
108 if (_annotations == null) {
109 _annotations = new HashMap<Class<? extends Annotation>,Annotation>();
110 }
111 Annotation previous = _annotations.put(ann.annotationType(), ann);
112 return (previous != null) && previous.equals(ann);
113 }
114}
115
116
117

After

…lines 1–105 unchanged (105 lines)
106
107 protected final boolean _add(Annotation ann) {
108 if (_annotations == null) {
109 _annotations = new HashMap<Class<? extends Annotation>,Annotation>();
110 }
111 Annotation previous = _annotations.put(ann.annotationType(), ann);
112 return (previous == null) || !previous.equals(ann);
113 }
114}
115
116
117

Before

program
package_declaration
package "package"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "fasterxml"
. "."
identifier "jackson"
. "."
identifier "databind"
. "."
identifier "introspect"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "lang"
. "."
identifier "annotation"
. "."
identifier "Annotation"
; ";"
import_declaration
import "import"
scoped_identifier
identifier "java"
. "."
identifier "util"
. "."
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 "Annotations"
; ";"
block_comment "/**\n * Simple helper class used to keep track of collection "...
class_declaration
modifiers
public "public"
final "final"
class "class"
identifier "AnnotationMap"
super_interfaces
implements "implements"
type_list
type_identifier "Annotations"
class_body
{ "{"
field_declaration (+22 nodes collapsed)
constructor_declaration
modifiers
public "public"
identifier "AnnotationMap"
formal_parameters
( "("
) ")"
constructor_body
{ "{"
} "}"
constructor_declaration (+34 nodes collapsed)
method_declaration (+71 nodes collapsed)
block_comment "/**\n * @since 2.3\n */"
method_declaration (+60 nodes collapsed)
method_declaration (+223 nodes collapsed)
method_declaration (+36 nodes collapsed)
block_comment "/**\n * Method called to add specified annotation in the "...
method_declaration (+60 nodes collapsed)
block_comment "/**\n * Method called to add specified annotation in the "...
method_declaration (+23 nodes collapsed)
method_declaration (+43 nodes collapsed)
block_comment "/*\n /****************************************************"...
method_declaration
modifiers
protected "protected"
final "final"
boolean_type "boolean"
identifier "_add"
formal_parameters
( "("
formal_parameter
type_identifier "Annotation"
identifier "ann"
) ")"
block
{ "{"
if_statement (+38 nodes collapsed)
local_variable_declaration (+22 nodes collapsed)
return_statement
return "return"
binary_expression
parenthesized_expression
( "("
binary_expression
identifier "previous"
!= "!="
null_literal "null"
) ")"
&& "&&"
method_invocation
identifier "previous"
. "."
identifier "equals"
argument_list
( "("
identifier "ann"
) ")"
; ";"
} "}"
} "}"

After

program
package_declaration
package "package"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "fasterxml"
. "."
identifier "jackson"
. "."
identifier "databind"
. "."
identifier "introspect"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "lang"
. "."
identifier "annotation"
. "."
identifier "Annotation"
; ";"
import_declaration
import "import"
scoped_identifier
identifier "java"
. "."
identifier "util"
. "."
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 "Annotations"
; ";"
block_comment "/**\n * Simple helper class used to keep track of collection "...
class_declaration
modifiers
public "public"
final "final"
class "class"
identifier "AnnotationMap"
super_interfaces
implements "implements"
type_list
type_identifier "Annotations"
class_body
{ "{"
field_declaration (+22 nodes collapsed)
constructor_declaration
modifiers
public "public"
identifier "AnnotationMap"
formal_parameters
( "("
) ")"
constructor_body
{ "{"
} "}"
constructor_declaration (+34 nodes collapsed)
method_declaration (+71 nodes collapsed)
block_comment "/**\n * @since 2.3\n */"
method_declaration (+60 nodes collapsed)
method_declaration (+223 nodes collapsed)
method_declaration (+36 nodes collapsed)
block_comment "/**\n * Method called to add specified annotation in the "...
method_declaration (+60 nodes collapsed)
block_comment "/**\n * Method called to add specified annotation in the "...
method_declaration (+23 nodes collapsed)
method_declaration (+43 nodes collapsed)
block_comment "/*\n /****************************************************"...
method_declaration
modifiers
protected "protected"
final "final"
boolean_type "boolean"
identifier "_add"
formal_parameters
( "("
formal_parameter
type_identifier "Annotation"
identifier "ann"
) ")"
block
{ "{"
if_statement (+38 nodes collapsed)
local_variable_declaration (+22 nodes collapsed)
return_statement
return "return"
binary_expression
parenthesized_expression
( "("
binary_expression
identifier "previous"
== "=="
null_literal "null"
) ")"
|| "||"
unary_expression
! "!"
method_invocation
identifier "previous"
. "."
identifier "equals"
argument_list
( "("
identifier "ann"
) ")"
; ";"
} "}"
} "}"