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–14 unchanged (14 lines)
15import java.util.List;
16import java.util.Map;
17
18/** An adapter between the {@link Writer} interface and {@link CodedOutputStream}. */
19@CheckReturnValue
20@ExperimentalApi
21final class CodedOutputStreamWriter implements Writer {
22 private final CodedOutputStream output;
23
24 public static CodedOutputStreamWriter forCodedOutput(CodedOutputStream output) {
25 if (output.wrapper != null) {
26 return (CodedOutputStreamWriter) output.wrapper;
27 }
…lines 28–1130 unchanged (1103 lines)

After

…lines 1–14 unchanged (14 lines)
15import java.util.List;
16import java.util.Map;
17
18/** An adapter between the {@link Writer} interface and {@link CodedOutputStream}. */
19@CheckReturnValue
20@ExperimentalApi
21@SuppressWarnings({"unchecked", "rawtypes"})
22final class CodedOutputStreamWriter implements Writer {
23 private final CodedOutputStream output;
24
25 public static CodedOutputStreamWriter forCodedOutput(CodedOutputStream output) {
26 if (output.wrapper != null) {
27 return (CodedOutputStreamWriter) output.wrapper;
…lines 28–1131 unchanged (1104 lines)

Before

program
line_comment "// Protocol Buffers - Google's data interchange format"
line_comment "// Copyright 2008 Google Inc. All rights reserved."
line_comment "//"
line_comment "// Use of this source code is governed by a BSD-style"
line_comment "// license that can be found in the LICENSE file or at"
line_comment "// https://developers.google.com/open-source/licenses/bsd"
package_declaration
package "package"
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "google"
. "."
identifier "protobuf"
; ";"
import_declaration
import "import"
static "static"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "google"
. "."
identifier "protobuf"
. "."
identifier "Internal"
. "."
identifier "checkNotNull"
; ";"
import_declaration
import "import"
static "static"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "google"
. "."
identifier "protobuf"
. "."
identifier "WireFormat"
. "."
identifier "WIRETYPE_LENGTH_DELIMITED"
; ";"
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 "List"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "util"
. "."
identifier "Map"
; ";"
block_comment "/** An adapter between the {@link Writer} interface and {@li"...
class_declaration
modifiers
marker_annotation
@ "@"
identifier "CheckReturnValue"
marker_annotation
@ "@"
identifier "ExperimentalApi"
final "final"
class "class"
identifier "CodedOutputStreamWriter"
super_interfaces
implements "implements"
type_list
type_identifier "Writer"
class_body (+10243 nodes collapsed)

After

program
line_comment "// Protocol Buffers - Google's data interchange format"
line_comment "// Copyright 2008 Google Inc. All rights reserved."
line_comment "//"
line_comment "// Use of this source code is governed by a BSD-style"
line_comment "// license that can be found in the LICENSE file or at"
line_comment "// https://developers.google.com/open-source/licenses/bsd"
package_declaration
package "package"
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "google"
. "."
identifier "protobuf"
; ";"
import_declaration
import "import"
static "static"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "google"
. "."
identifier "protobuf"
. "."
identifier "Internal"
. "."
identifier "checkNotNull"
; ";"
import_declaration
import "import"
static "static"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "google"
. "."
identifier "protobuf"
. "."
identifier "WireFormat"
. "."
identifier "WIRETYPE_LENGTH_DELIMITED"
; ";"
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 "List"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "util"
. "."
identifier "Map"
; ";"
block_comment "/** An adapter between the {@link Writer} interface and {@li"...
class_declaration
modifiers
marker_annotation
@ "@"
identifier "CheckReturnValue"
marker_annotation
@ "@"
identifier "ExperimentalApi"
annotation
@ "@"
identifier "SuppressWarnings"
annotation_argument_list
( "("
element_value_array_initializer
{ "{"
string_literal
" "\""
string_fragment "unchecked"
" "\""
, ","
string_literal
" "\""
string_fragment "rawtypes"
" "\""
} "}"
) ")"
final "final"
class "class"
identifier "CodedOutputStreamWriter"
super_interfaces
implements "implements"
type_list
type_identifier "Writer"
class_body (+10243 nodes collapsed)