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–60 unchanged (60 lines)
61 .construct()
62 .create(gson, fieldType);
63 } else {
64 throw new IllegalArgumentException(
65 "@JsonAdapter value must be TypeAdapter or TypeAdapterFactory reference.");
66 }
67 typeAdapter = typeAdapter.nullSafe();
68 return typeAdapter;
69 }
70}
71

After

…lines 1–60 unchanged (60 lines)
61 .construct()
62 .create(gson, fieldType);
63 } else {
64 throw new IllegalArgumentException(
65 "@JsonAdapter value must be TypeAdapter or TypeAdapterFactory reference.");
66 }
67 if (typeAdapter != null) {
68 typeAdapter = typeAdapter.nullSafe();
69 }
70 return typeAdapter;
71 }
72}
73

Before

program
block_comment "/*\n * Copyright (C) 2014 Google Inc.\n *\n * Licensed under th"...
package_declaration
package "package"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "google"
. "."
identifier "gson"
. "."
identifier "internal"
. "."
identifier "bind"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "google"
. "."
identifier "gson"
. "."
identifier "Gson"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "google"
. "."
identifier "gson"
. "."
identifier "TypeAdapter"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "google"
. "."
identifier "gson"
. "."
identifier "TypeAdapterFactory"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "google"
. "."
identifier "gson"
. "."
identifier "annotations"
. "."
identifier "JsonAdapter"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "google"
. "."
identifier "gson"
. "."
identifier "internal"
. "."
identifier "ConstructorConstructor"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "google"
. "."
identifier "gson"
. "."
identifier "reflect"
. "."
identifier "TypeToken"
; ";"
block_comment "/**\n * Given a type T, looks for the annotation {@link JsonA"...
class_declaration
modifiers
public "public"
final "final"
class "class"
identifier "JsonAdapterAnnotationTypeAdapterFactory"
super_interfaces
implements "implements"
type_list
type_identifier "TypeAdapterFactory"
class_body
{ "{"
field_declaration
modifiers
private "private"
final "final"
type_identifier "ConstructorConstructor"
variable_declarator
identifier "constructorConstructor"
; ";"
constructor_declaration (+22 nodes collapsed)
method_declaration (+109 nodes collapsed)
method_declaration
modifiers
annotation
@ "@"
identifier "SuppressWarnings"
annotation_argument_list
( "("
string_literal
" "\""
string_fragment "unchecked"
" "\""
) ")"
line_comment "// Casts guarded by conditionals."
static "static"
generic_type
type_identifier "TypeAdapter"
type_arguments
< "<"
wildcard
? "?"
> ">"
identifier "getTypeAdapter"
formal_parameters (+24 nodes collapsed)
block
{ "{"
local_variable_declaration
generic_type
type_identifier "Class"
type_arguments
< "<"
wildcard
? "?"
> ">"
variable_declarator
identifier "value"
= "="
method_invocation
identifier "annotation"
. "."
identifier "value"
argument_list
( "("
) ")"
; ";"
local_variable_declaration
generic_type
type_identifier "TypeAdapter"
type_arguments
< "<"
wildcard
? "?"
> ">"
variable_declarator
identifier "typeAdapter"
; ";"
if_statement (+171 nodes collapsed)
expression_statement
assignment_expression
identifier "typeAdapter"
= "="
method_invocation
identifier "typeAdapter"
. "."
identifier "nullSafe"
argument_list
( "("
) ")"
; ";"
return_statement
return "return"
identifier "typeAdapter"
; ";"
} "}"
} "}"

After

program
block_comment "/*\n * Copyright (C) 2014 Google Inc.\n *\n * Licensed under th"...
package_declaration
package "package"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "google"
. "."
identifier "gson"
. "."
identifier "internal"
. "."
identifier "bind"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "google"
. "."
identifier "gson"
. "."
identifier "Gson"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "google"
. "."
identifier "gson"
. "."
identifier "TypeAdapter"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "google"
. "."
identifier "gson"
. "."
identifier "TypeAdapterFactory"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "google"
. "."
identifier "gson"
. "."
identifier "annotations"
. "."
identifier "JsonAdapter"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "google"
. "."
identifier "gson"
. "."
identifier "internal"
. "."
identifier "ConstructorConstructor"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "google"
. "."
identifier "gson"
. "."
identifier "reflect"
. "."
identifier "TypeToken"
; ";"
block_comment "/**\n * Given a type T, looks for the annotation {@link JsonA"...
class_declaration
modifiers
public "public"
final "final"
class "class"
identifier "JsonAdapterAnnotationTypeAdapterFactory"
super_interfaces
implements "implements"
type_list
type_identifier "TypeAdapterFactory"
class_body
{ "{"
field_declaration
modifiers
private "private"
final "final"
type_identifier "ConstructorConstructor"
variable_declarator
identifier "constructorConstructor"
; ";"
constructor_declaration (+22 nodes collapsed)
method_declaration (+109 nodes collapsed)
method_declaration
modifiers
annotation
@ "@"
identifier "SuppressWarnings"
annotation_argument_list
( "("
string_literal
" "\""
string_fragment "unchecked"
" "\""
) ")"
line_comment "// Casts guarded by conditionals."
static "static"
generic_type
type_identifier "TypeAdapter"
type_arguments
< "<"
wildcard
? "?"
> ">"
identifier "getTypeAdapter"
formal_parameters (+24 nodes collapsed)
block
{ "{"
local_variable_declaration
generic_type
type_identifier "Class"
type_arguments
< "<"
wildcard
? "?"
> ">"
variable_declarator
identifier "value"
= "="
method_invocation
identifier "annotation"
. "."
identifier "value"
argument_list
( "("
) ")"
; ";"
local_variable_declaration
generic_type
type_identifier "TypeAdapter"
type_arguments
< "<"
wildcard
? "?"
> ">"
variable_declarator
identifier "typeAdapter"
; ";"
if_statement (+171 nodes collapsed)
if_statement
if "if"
parenthesized_expression
( "("
binary_expression
identifier "typeAdapter"
!= "!="
null_literal "null"
) ")"
block
{ "{"
expression_statement
assignment_expression
identifier "typeAdapter"
= "="
method_invocation
identifier "typeAdapter"
. "."
identifier "nullSafe"
argument_list
( "("
) ")"
; ";"
} "}"
return_statement
return "return"
identifier "typeAdapter"
; ";"
} "}"
} "}"