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–7 unchanged (7 lines)
8package com.google.protobuf;
9
10@CheckReturnValue
11final class NewInstanceSchemaLite implements NewInstanceSchema {
12 @Override
13 public Object newInstance(Object defaultInstance) {
14 // TODO decide if we're keeping support for Full in schema classes and handle this
15 // better.
16 return ((GeneratedMessageLite<?, ?>) defaultInstance).newMutableInstance();
17 }
18}
19

After

…lines 1–7 unchanged (7 lines)
8package com.google.protobuf;
9
10@CheckReturnValue
11final class NewInstanceSchemaLite implements NewInstanceSchema {
12 @Override
13 public Object newInstance(Object defaultInstance) {
14 // TODO(b/248560713) decide if we're keeping support for Full in schema classes and handle this
15 // better.
16 return ((GeneratedMessageLite<?, ?>) defaultInstance).newMutableInstance();
17 }
18}
19

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"
; ";"
class_declaration
modifiers
marker_annotation
@ "@"
identifier "CheckReturnValue"
final "final"
class "class"
identifier "NewInstanceSchemaLite"
super_interfaces
implements "implements"
type_list
type_identifier "NewInstanceSchema"
class_body
{ "{"
method_declaration
modifiers
marker_annotation
@ "@"
identifier "Override"
public "public"
type_identifier "Object"
identifier "newInstance"
formal_parameters
( "("
formal_parameter
type_identifier "Object"
identifier "defaultInstance"
) ")"
block
{ "{"
line_comment "// TODO decide if we're keeping support for Full in schema c"...
line_comment "// better."
return_statement (+26 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"
; ";"
class_declaration
modifiers
marker_annotation
@ "@"
identifier "CheckReturnValue"
final "final"
class "class"
identifier "NewInstanceSchemaLite"
super_interfaces
implements "implements"
type_list
type_identifier "NewInstanceSchema"
class_body
{ "{"
method_declaration
modifiers
marker_annotation
@ "@"
identifier "Override"
public "public"
type_identifier "Object"
identifier "newInstance"
formal_parameters
( "("
formal_parameter
type_identifier "Object"
identifier "defaultInstance"
) ")"
block
{ "{"
line_comment "// TODO(b/248560713) decide if we're keeping support for Ful"...
line_comment "// better."
return_statement (+26 nodes collapsed)
} "}"
} "}"