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–73 unchanged (73 lines)
74
75 /**
76 Get the attribute value.
77 @return the attribute value
78 */
79 public String getValue() {
80 return val;
81 }
82
83 /**
84 Set the attribute value.
85 @param val the new attribute value; must not be null
86 */
…lines 87–209 unchanged (123 lines)

After

…lines 1–73 unchanged (73 lines)
74
75 /**
76 Get the attribute value.
77 @return the attribute value
78 */
79 public String getValue() {
80 return Attributes.checkNotNull(val);
81 }
82
83 /**
84 Set the attribute value.
85 @param val the new attribute value; must not be null
86 */
…lines 87–209 unchanged (123 lines)

Before

program
package_declaration
package "package"
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "jsoup"
. "."
identifier "nodes"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "jsoup"
. "."
identifier "SerializationException"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "jsoup"
. "."
identifier "internal"
. "."
identifier "StringUtil"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "jsoup"
. "."
identifier "helper"
. "."
identifier "Validate"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "io"
. "."
identifier "IOException"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "util"
. "."
identifier "Arrays"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "util"
. "."
identifier "Map"
; ";"
block_comment "/**\n A single key + value attribute. (Only used for presenta"...
class_declaration
modifiers
public "public"
class "class"
identifier "Attribute"
super_interfaces
implements "implements"
type_list
generic_type
scoped_type_identifier
type_identifier "Map"
. "."
type_identifier "Entry"
type_arguments
< "<"
type_identifier "String"
, ","
type_identifier "String"
> ">"
, ","
type_identifier "Cloneable"
class_body
{ "{"
field_declaration (+166 nodes collapsed)
field_declaration
modifiers
private "private"
type_identifier "String"
variable_declarator
identifier "key"
; ";"
field_declaration
modifiers
private "private"
type_identifier "String"
variable_declarator
identifier "val"
; ";"
field_declaration
type_identifier "Attributes"
variable_declarator
identifier "parent"
; ";"
line_comment "// used to update the holding Attributes when the key / valu"...
block_comment "/**\n * Create a new attribute from unencoded (raw) key a"...
constructor_declaration (+28 nodes collapsed)
block_comment "/**\n * Create a new attribute from unencoded (raw) key a"...
constructor_declaration (+81 nodes collapsed)
block_comment "/**\n Get the attribute key.\n @return the attribute k"...
method_declaration
modifiers
public "public"
type_identifier "String"
identifier "getKey"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
identifier "key"
; ";"
} "}"
block_comment "/**\n Set the attribute key; case is preserved.\n @par"...
method_declaration (+111 nodes collapsed)
block_comment "/**\n Get the attribute value.\n @return the attribute"...
method_declaration
modifiers
public "public"
type_identifier "String"
identifier "getValue"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
identifier "val"
; ";"
} "}"
block_comment "/**\n Set the attribute value.\n @param val the new at"...
method_declaration (+99 nodes collapsed)
block_comment "/**\n Get the HTML representation of this attribute; e.g."...
method_declaration (+88 nodes collapsed)
method_declaration (+114 nodes collapsed)
method_declaration (+38 nodes collapsed)
block_comment "/**\n Get the string representation of this attribute, im"...
method_declaration (+22 nodes collapsed)
block_comment "/**\n * Create a new Attribute from an unencoded key and "...
method_declaration (+50 nodes collapsed)
method_declaration
modifiers
protected "protected"
boolean_type "boolean"
identifier "isDataAttribute"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
method_invocation
identifier "isDataAttribute"
argument_list
( "("
identifier "key"
) ")"
; ";"
} "}"
method_declaration (+50 nodes collapsed)
block_comment "/**\n * Collapsible if it's a boolean attribute and value"...
method_declaration (+31 nodes collapsed)
method_declaration (+101 nodes collapsed)
block_comment "/**\n * @deprecated\n */"
method_declaration (+33 nodes collapsed)
block_comment "/**\n * Checks if this attribute name is defined as a boo"...
method_declaration (+33 nodes collapsed)
method_declaration (+135 nodes collapsed)
method_declaration (+71 nodes collapsed)
method_declaration (+54 nodes collapsed)
} "}"

After

program
package_declaration
package "package"
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "jsoup"
. "."
identifier "nodes"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "jsoup"
. "."
identifier "SerializationException"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "jsoup"
. "."
identifier "internal"
. "."
identifier "StringUtil"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "jsoup"
. "."
identifier "helper"
. "."
identifier "Validate"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "io"
. "."
identifier "IOException"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "util"
. "."
identifier "Arrays"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "util"
. "."
identifier "Map"
; ";"
block_comment "/**\n A single key + value attribute. (Only used for presenta"...
class_declaration
modifiers
public "public"
class "class"
identifier "Attribute"
super_interfaces
implements "implements"
type_list
generic_type
scoped_type_identifier
type_identifier "Map"
. "."
type_identifier "Entry"
type_arguments
< "<"
type_identifier "String"
, ","
type_identifier "String"
> ">"
, ","
type_identifier "Cloneable"
class_body
{ "{"
field_declaration (+166 nodes collapsed)
field_declaration
modifiers
private "private"
type_identifier "String"
variable_declarator
identifier "key"
; ";"
field_declaration
modifiers
private "private"
type_identifier "String"
variable_declarator
identifier "val"
; ";"
field_declaration
type_identifier "Attributes"
variable_declarator
identifier "parent"
; ";"
line_comment "// used to update the holding Attributes when the key / valu"...
block_comment "/**\n * Create a new attribute from unencoded (raw) key a"...
constructor_declaration (+28 nodes collapsed)
block_comment "/**\n * Create a new attribute from unencoded (raw) key a"...
constructor_declaration (+81 nodes collapsed)
block_comment "/**\n Get the attribute key.\n @return the attribute k"...
method_declaration
modifiers
public "public"
type_identifier "String"
identifier "getKey"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
identifier "key"
; ";"
} "}"
block_comment "/**\n Set the attribute key; case is preserved.\n @par"...
method_declaration (+111 nodes collapsed)
block_comment "/**\n Get the attribute value.\n @return the attribute"...
method_declaration
modifiers
public "public"
type_identifier "String"
identifier "getValue"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
method_invocation
identifier "Attributes"
. "."
identifier "checkNotNull"
argument_list
( "("
identifier "val"
) ")"
; ";"
} "}"
block_comment "/**\n Set the attribute value.\n @param val the new at"...
method_declaration (+99 nodes collapsed)
block_comment "/**\n Get the HTML representation of this attribute; e.g."...
method_declaration (+88 nodes collapsed)
method_declaration (+114 nodes collapsed)
method_declaration (+38 nodes collapsed)
block_comment "/**\n Get the string representation of this attribute, im"...
method_declaration (+22 nodes collapsed)
block_comment "/**\n * Create a new Attribute from an unencoded key and "...
method_declaration (+50 nodes collapsed)
method_declaration
modifiers
protected "protected"
boolean_type "boolean"
identifier "isDataAttribute"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
method_invocation
identifier "isDataAttribute"
argument_list
( "("
identifier "key"
) ")"
; ";"
} "}"
method_declaration (+50 nodes collapsed)
block_comment "/**\n * Collapsible if it's a boolean attribute and value"...
method_declaration (+31 nodes collapsed)
method_declaration (+101 nodes collapsed)
block_comment "/**\n * @deprecated\n */"
method_declaration (+33 nodes collapsed)
block_comment "/**\n * Checks if this attribute name is defined as a boo"...
method_declaration (+33 nodes collapsed)
method_declaration (+135 nodes collapsed)
method_declaration (+71 nodes collapsed)
method_declaration (+54 nodes collapsed)
} "}"