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

1package com.genymobile.scrcpy;
2
3public interface Codec {
4
5 enum Type {
6 VIDEO,
7 }
8
9 Type getType();
10
11 int getId();
12
13 String getName();
…lines 14–17 unchanged (4 lines)

After

1package com.genymobile.scrcpy;
2
3public interface Codec {
4
5 enum Type {
6 VIDEO,
7 AUDIO,
8 }
9
10 Type getType();
11
12 int getId();
13
…lines 14–18 unchanged (5 lines)

Before

program
package_declaration
package "package"
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "genymobile"
. "."
identifier "scrcpy"
; ";"
interface_declaration
modifiers
public "public"
interface "interface"
identifier "Codec"
interface_body
{ "{"
enum_declaration
enum "enum"
identifier "Type"
enum_body
{ "{"
enum_constant
identifier "VIDEO"
, ","
} "}"
method_declaration
type_identifier "Type"
identifier "getType"
formal_parameters
( "("
) ")"
; ";"
method_declaration
integral_type
int "int"
identifier "getId"
formal_parameters
( "("
) ")"
; ";"
method_declaration
type_identifier "String"
identifier "getName"
formal_parameters
( "("
) ")"
; ";"
method_declaration
type_identifier "String"
identifier "getMimeType"
formal_parameters
( "("
) ")"
; ";"
} "}"

After

program
package_declaration
package "package"
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "genymobile"
. "."
identifier "scrcpy"
; ";"
interface_declaration
modifiers
public "public"
interface "interface"
identifier "Codec"
interface_body
{ "{"
enum_declaration
enum "enum"
identifier "Type"
enum_body
{ "{"
enum_constant
identifier "VIDEO"
, ","
enum_constant
identifier "AUDIO"
, ","
} "}"
method_declaration
type_identifier "Type"
identifier "getType"
formal_parameters
( "("
) ")"
; ";"
method_declaration
integral_type
int "int"
identifier "getId"
formal_parameters
( "("
) ")"
; ";"
method_declaration
type_identifier "String"
identifier "getName"
formal_parameters
( "("
) ")"
; ";"
method_declaration
type_identifier "String"
identifier "getMimeType"
formal_parameters
( "("
) ")"
; ";"
} "}"