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–252 unchanged (252 lines)
253 throws ZipException {
254 if (rawCentralDirectoryData != null) {
255 int expectedLength = (hasUncompressedSize ? DWORD : 0)
256 + (hasCompressedSize ? DWORD : 0)
257 + (hasRelativeHeaderOffset ? DWORD : 0)
258 + (hasDiskStart ? WORD : 0);
259 if (rawCentralDirectoryData.length != expectedLength) {
260 throw new ZipException("central directory zip64 extended"
261 + " information extra field's length"
262 + " doesn't match central directory"
263 + " data. Expected length "
264 + expectedLength + " but is "
265 + rawCentralDirectoryData.length);
…lines 266–358 unchanged (93 lines)

After

…lines 1–252 unchanged (252 lines)
253 throws ZipException {
254 if (rawCentralDirectoryData != null) {
255 int expectedLength = (hasUncompressedSize ? DWORD : 0)
256 + (hasCompressedSize ? DWORD : 0)
257 + (hasRelativeHeaderOffset ? DWORD : 0)
258 + (hasDiskStart ? WORD : 0);
259 if (rawCentralDirectoryData.length < expectedLength) {
260 throw new ZipException("central directory zip64 extended"
261 + " information extra field's length"
262 + " doesn't match central directory"
263 + " data. Expected length "
264 + expectedLength + " but is "
265 + rawCentralDirectoryData.length);
…lines 266–358 unchanged (93 lines)

Before

program
block_comment "/*\n * Licensed to the Apache Software Foundation (ASF) under"...
package_declaration
package "package"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "apache"
. "."
identifier "commons"
. "."
identifier "compress"
. "."
identifier "archivers"
. "."
identifier "zip"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "util"
. "."
identifier "zip"
. "."
identifier "ZipException"
; ";"
import_declaration (+26 nodes collapsed)
import_declaration (+26 nodes collapsed)
block_comment "/**\n * Holds size and other extended information for entries"...
class_declaration
modifiers
public "public"
class "class"
identifier "Zip64ExtendedInformationExtraField"
super_interfaces
implements "implements"
type_list
type_identifier "ZipExtraField"
class_body
{ "{"
field_declaration
modifiers
static "static"
final "final"
type_identifier "ZipShort"
variable_declarator
identifier "HEADER_ID"
= "="
object_creation_expression
new "new"
type_identifier "ZipShort"
argument_list
( "("
hex_integer_literal "0x0001"
) ")"
; ";"
field_declaration
modifiers
private "private"
static "static"
final "final"
type_identifier "String"
variable_declarator
identifier "LFH_MUST_HAVE_BOTH_SIZES_MSG"
= "="
binary_expression
string_literal
" "\""
string_fragment "Zip64 extended information must contain"
" "\""
+ "+"
string_literal
" "\""
string_fragment " both size values in the local file header."
" "\""
; ";"
field_declaration (+23 nodes collapsed)
field_declaration
modifiers
private "private"
type_identifier "ZipEightByteInteger"
variable_declarator
identifier "size"
, ","
variable_declarator
identifier "compressedSize"
, ","
variable_declarator
identifier "relativeHeaderOffset"
; ";"
field_declaration
modifiers
private "private"
type_identifier "ZipLong"
variable_declarator
identifier "diskStart"
; ";"
block_comment "/**\n * Stored in {@link #parseFromCentralDirectoryData\n "...
field_declaration
modifiers
private "private"
array_type
integral_type
byte "byte"
dimensions
[ "["
] "]"
variable_declarator
identifier "rawCentralDirectoryData"
; ";"
block_comment "/**\n * This constructor should only be used by the code "...
constructor_declaration
modifiers
public "public"
identifier "Zip64ExtendedInformationExtraField"
formal_parameters
( "("
) ")"
constructor_body
{ "{"
} "}"
block_comment "/**\n * Creates an extra field based on the original and "...
constructor_declaration (+30 nodes collapsed)
block_comment "/**\n * Creates an extra field based on all four possible"...
constructor_declaration (+61 nodes collapsed)
block_comment "/** {@inheritDoc} */"
method_declaration
modifiers
public "public"
type_identifier "ZipShort"
identifier "getHeaderId"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
identifier "HEADER_ID"
; ";"
} "}"
block_comment "/** {@inheritDoc} */"
method_declaration (+32 nodes collapsed)
block_comment "/** {@inheritDoc} */"
method_declaration (+74 nodes collapsed)
block_comment "/** {@inheritDoc} */"
method_declaration (+100 nodes collapsed)
block_comment "/** {@inheritDoc} */"
method_declaration (+146 nodes collapsed)
block_comment "/** {@inheritDoc} */"
method_declaration (+206 nodes collapsed)
block_comment "/** {@inheritDoc} */"
method_declaration (+206 nodes collapsed)
block_comment "/**\n * Parses the raw bytes read from the central direct"...
method_declaration
modifiers
public "public"
void_type "void"
identifier "reparseCentralDirectoryData"
formal_parameters
( "("
formal_parameter
boolean_type "boolean"
identifier "hasUncompressedSize"
, ","
formal_parameter
boolean_type "boolean"
identifier "hasCompressedSize"
, ","
formal_parameter
boolean_type "boolean"
identifier "hasRelativeHeaderOffset"
, ","
formal_parameter
boolean_type "boolean"
identifier "hasDiskStart"
) ")"
throws
throws "throws"
type_identifier "ZipException"
block
{ "{"
if_statement
if "if"
parenthesized_expression
( "("
binary_expression
identifier "rawCentralDirectoryData"
!= "!="
null_literal "null"
) ")"
block
{ "{"
local_variable_declaration (+49 nodes collapsed)
if_statement
if "if"
parenthesized_expression
( "("
binary_expression
field_access
identifier "rawCentralDirectoryData"
. "."
identifier "length"
!= "!="
identifier "expectedLength"
) ")"
block (+49 nodes collapsed)
local_variable_declaration
integral_type
int "int"
variable_declarator
identifier "offset"
= "="
decimal_integer_literal "0"
; ";"
if_statement (+29 nodes collapsed)
if_statement (+29 nodes collapsed)
if_statement (+29 nodes collapsed)
if_statement (+29 nodes collapsed)
} "}"
} "}"
block_comment "/**\n * The uncompressed size stored in this extra field."...
method_declaration
modifiers
public "public"
type_identifier "ZipEightByteInteger"
identifier "getSize"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
identifier "size"
; ";"
} "}"
block_comment "/**\n * The uncompressed size stored in this extra field."...
method_declaration (+23 nodes collapsed)
block_comment "/**\n * The compressed size stored in this extra field.\n "...
method_declaration
modifiers
public "public"
type_identifier "ZipEightByteInteger"
identifier "getCompressedSize"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
identifier "compressedSize"
; ";"
} "}"
block_comment "/**\n * The uncompressed size stored in this extra field."...
method_declaration (+23 nodes collapsed)
block_comment "/**\n * The relative header offset stored in this extra f"...
method_declaration
modifiers
public "public"
type_identifier "ZipEightByteInteger"
identifier "getRelativeHeaderOffset"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
identifier "relativeHeaderOffset"
; ";"
} "}"
block_comment "/**\n * The relative header offset stored in this extra f"...
method_declaration
modifiers
public "public"
void_type "void"
identifier "setRelativeHeaderOffset"
formal_parameters
( "("
formal_parameter
type_identifier "ZipEightByteInteger"
identifier "rho"
) ")"
block
{ "{"
expression_statement
assignment_expression
identifier "relativeHeaderOffset"
= "="
identifier "rho"
; ";"
} "}"
block_comment "/**\n * The disk start number stored in this extra field."...
method_declaration
modifiers
public "public"
type_identifier "ZipLong"
identifier "getDiskStartNumber"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
identifier "diskStart"
; ";"
} "}"
block_comment "/**\n * The disk start number stored in this extra field."...
method_declaration
modifiers
public "public"
void_type "void"
identifier "setDiskStartNumber"
formal_parameters
( "("
formal_parameter
type_identifier "ZipLong"
identifier "ds"
) ")"
block
{ "{"
expression_statement
assignment_expression
identifier "diskStart"
= "="
identifier "ds"
; ";"
} "}"
method_declaration (+116 nodes collapsed)
} "}"

After

program
block_comment "/*\n * Licensed to the Apache Software Foundation (ASF) under"...
package_declaration
package "package"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "apache"
. "."
identifier "commons"
. "."
identifier "compress"
. "."
identifier "archivers"
. "."
identifier "zip"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "util"
. "."
identifier "zip"
. "."
identifier "ZipException"
; ";"
import_declaration (+26 nodes collapsed)
import_declaration (+26 nodes collapsed)
block_comment "/**\n * Holds size and other extended information for entries"...
class_declaration
modifiers
public "public"
class "class"
identifier "Zip64ExtendedInformationExtraField"
super_interfaces
implements "implements"
type_list
type_identifier "ZipExtraField"
class_body
{ "{"
field_declaration
modifiers
static "static"
final "final"
type_identifier "ZipShort"
variable_declarator
identifier "HEADER_ID"
= "="
object_creation_expression
new "new"
type_identifier "ZipShort"
argument_list
( "("
hex_integer_literal "0x0001"
) ")"
; ";"
field_declaration
modifiers
private "private"
static "static"
final "final"
type_identifier "String"
variable_declarator
identifier "LFH_MUST_HAVE_BOTH_SIZES_MSG"
= "="
binary_expression
string_literal
" "\""
string_fragment "Zip64 extended information must contain"
" "\""
+ "+"
string_literal
" "\""
string_fragment " both size values in the local file header."
" "\""
; ";"
field_declaration (+23 nodes collapsed)
field_declaration
modifiers
private "private"
type_identifier "ZipEightByteInteger"
variable_declarator
identifier "size"
, ","
variable_declarator
identifier "compressedSize"
, ","
variable_declarator
identifier "relativeHeaderOffset"
; ";"
field_declaration
modifiers
private "private"
type_identifier "ZipLong"
variable_declarator
identifier "diskStart"
; ";"
block_comment "/**\n * Stored in {@link #parseFromCentralDirectoryData\n "...
field_declaration
modifiers
private "private"
array_type
integral_type
byte "byte"
dimensions
[ "["
] "]"
variable_declarator
identifier "rawCentralDirectoryData"
; ";"
block_comment "/**\n * This constructor should only be used by the code "...
constructor_declaration
modifiers
public "public"
identifier "Zip64ExtendedInformationExtraField"
formal_parameters
( "("
) ")"
constructor_body
{ "{"
} "}"
block_comment "/**\n * Creates an extra field based on the original and "...
constructor_declaration (+30 nodes collapsed)
block_comment "/**\n * Creates an extra field based on all four possible"...
constructor_declaration (+61 nodes collapsed)
block_comment "/** {@inheritDoc} */"
method_declaration
modifiers
public "public"
type_identifier "ZipShort"
identifier "getHeaderId"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
identifier "HEADER_ID"
; ";"
} "}"
block_comment "/** {@inheritDoc} */"
method_declaration (+32 nodes collapsed)
block_comment "/** {@inheritDoc} */"
method_declaration (+74 nodes collapsed)
block_comment "/** {@inheritDoc} */"
method_declaration (+100 nodes collapsed)
block_comment "/** {@inheritDoc} */"
method_declaration (+146 nodes collapsed)
block_comment "/** {@inheritDoc} */"
method_declaration (+206 nodes collapsed)
block_comment "/** {@inheritDoc} */"
method_declaration (+206 nodes collapsed)
block_comment "/**\n * Parses the raw bytes read from the central direct"...
method_declaration
modifiers
public "public"
void_type "void"
identifier "reparseCentralDirectoryData"
formal_parameters
( "("
formal_parameter
boolean_type "boolean"
identifier "hasUncompressedSize"
, ","
formal_parameter
boolean_type "boolean"
identifier "hasCompressedSize"
, ","
formal_parameter
boolean_type "boolean"
identifier "hasRelativeHeaderOffset"
, ","
formal_parameter
boolean_type "boolean"
identifier "hasDiskStart"
) ")"
throws
throws "throws"
type_identifier "ZipException"
block
{ "{"
if_statement
if "if"
parenthesized_expression
( "("
binary_expression
identifier "rawCentralDirectoryData"
!= "!="
null_literal "null"
) ")"
block
{ "{"
local_variable_declaration (+49 nodes collapsed)
if_statement
if "if"
parenthesized_expression
( "("
binary_expression
field_access
identifier "rawCentralDirectoryData"
. "."
identifier "length"
< "<"
identifier "expectedLength"
) ")"
block (+49 nodes collapsed)
local_variable_declaration
integral_type
int "int"
variable_declarator
identifier "offset"
= "="
decimal_integer_literal "0"
; ";"
if_statement (+29 nodes collapsed)
if_statement (+29 nodes collapsed)
if_statement (+29 nodes collapsed)
if_statement (+29 nodes collapsed)
} "}"
} "}"
block_comment "/**\n * The uncompressed size stored in this extra field."...
method_declaration
modifiers
public "public"
type_identifier "ZipEightByteInteger"
identifier "getSize"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
identifier "size"
; ";"
} "}"
block_comment "/**\n * The uncompressed size stored in this extra field."...
method_declaration (+23 nodes collapsed)
block_comment "/**\n * The compressed size stored in this extra field.\n "...
method_declaration
modifiers
public "public"
type_identifier "ZipEightByteInteger"
identifier "getCompressedSize"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
identifier "compressedSize"
; ";"
} "}"
block_comment "/**\n * The uncompressed size stored in this extra field."...
method_declaration (+23 nodes collapsed)
block_comment "/**\n * The relative header offset stored in this extra f"...
method_declaration
modifiers
public "public"
type_identifier "ZipEightByteInteger"
identifier "getRelativeHeaderOffset"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
identifier "relativeHeaderOffset"
; ";"
} "}"
block_comment "/**\n * The relative header offset stored in this extra f"...
method_declaration
modifiers
public "public"
void_type "void"
identifier "setRelativeHeaderOffset"
formal_parameters
( "("
formal_parameter
type_identifier "ZipEightByteInteger"
identifier "rho"
) ")"
block
{ "{"
expression_statement
assignment_expression
identifier "relativeHeaderOffset"
= "="
identifier "rho"
; ";"
} "}"
block_comment "/**\n * The disk start number stored in this extra field."...
method_declaration
modifiers
public "public"
type_identifier "ZipLong"
identifier "getDiskStartNumber"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
identifier "diskStart"
; ";"
} "}"
block_comment "/**\n * The disk start number stored in this extra field."...
method_declaration
modifiers
public "public"
void_type "void"
identifier "setDiskStartNumber"
formal_parameters
( "("
formal_parameter
type_identifier "ZipLong"
identifier "ds"
) ")"
block
{ "{"
expression_statement
assignment_expression
identifier "diskStart"
= "="
identifier "ds"
; ";"
} "}"
method_declaration (+116 nodes collapsed)
} "}"