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
3import android.media.MediaFormat;
4
5public enum AudioCodec implements Codec {
6 OPUS(0x6f_70_75_73, "opus", MediaFormat.MIMETYPE_AUDIO_OPUS),
7 AAC(0x00_61_61_63, "aac", MediaFormat.MIMETYPE_AUDIO_AAC);
8
9 private final int id; // 4-byte ASCII representation of the name
10 private final String name;
11 private final String mimeType;
12
13 AudioCodec(int id, String name, String mimeType) {
…lines 14–48 unchanged (35 lines)

After

1package com.genymobile.scrcpy;
2
3import android.media.MediaFormat;
4
5public enum AudioCodec implements Codec {
6 OPUS(0x6f_70_75_73, "opus", MediaFormat.MIMETYPE_AUDIO_OPUS),
7 AAC(0x00_61_61_63, "aac", MediaFormat.MIMETYPE_AUDIO_AAC),
8 RAW(0x00_72_61_77, "raw", MediaFormat.MIMETYPE_AUDIO_RAW);
9
10 private final int id; // 4-byte ASCII representation of the name
11 private final String name;
12 private final String mimeType;
13
14 AudioCodec(int id, String name, String mimeType) {
…lines 15–49 unchanged (35 lines)

Before

program
package_declaration
package "package"
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "genymobile"
. "."
identifier "scrcpy"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "android"
. "."
identifier "media"
. "."
identifier "MediaFormat"
; ";"
enum_declaration
modifiers
public "public"
enum "enum"
identifier "AudioCodec"
super_interfaces
implements "implements"
type_list
type_identifier "Codec"
enum_body
{ "{"
enum_constant
identifier "OPUS"
argument_list
( "("
hex_integer_literal "0x6f_70_75_73"
, ","
string_literal
" "\""
string_fragment "opus"
" "\""
, ","
field_access
identifier "MediaFormat"
. "."
identifier "MIMETYPE_AUDIO_OPUS"
) ")"
, ","
enum_constant
identifier "AAC"
argument_list
( "("
hex_integer_literal "0x00_61_61_63"
, ","
string_literal
" "\""
string_fragment "aac"
" "\""
, ","
field_access
identifier "MediaFormat"
. "."
identifier "MIMETYPE_AUDIO_AAC"
) ")"
enum_body_declarations (+208 nodes collapsed)
} "}"

After

program
package_declaration
package "package"
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "genymobile"
. "."
identifier "scrcpy"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "android"
. "."
identifier "media"
. "."
identifier "MediaFormat"
; ";"
enum_declaration
modifiers
public "public"
enum "enum"
identifier "AudioCodec"
super_interfaces
implements "implements"
type_list
type_identifier "Codec"
enum_body
{ "{"
enum_constant
identifier "OPUS"
argument_list
( "("
hex_integer_literal "0x6f_70_75_73"
, ","
string_literal
" "\""
string_fragment "opus"
" "\""
, ","
field_access
identifier "MediaFormat"
. "."
identifier "MIMETYPE_AUDIO_OPUS"
) ")"
, ","
enum_constant
identifier "AAC"
argument_list
( "("
hex_integer_literal "0x00_61_61_63"
, ","
string_literal
" "\""
string_fragment "aac"
" "\""
, ","
field_access
identifier "MediaFormat"
. "."
identifier "MIMETYPE_AUDIO_AAC"
) ")"
, ","
enum_constant
identifier "RAW"
argument_list
( "("
hex_integer_literal "0x00_72_61_77"
, ","
string_literal
" "\""
string_fragment "raw"
" "\""
, ","
field_access
identifier "MediaFormat"
. "."
identifier "MIMETYPE_AUDIO_RAW"
) ")"
enum_body_declarations (+208 nodes collapsed)
} "}"