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–339 unchanged (339 lines)
340 * @throws IOException
341 * if an I/O error has occurred or if a CPIO file error has
342 * occurred
343 */
344 public void close() throws IOException {
345 if (!this.closed) {
346 super.close();
347 this.closed = true;
348 }
349 }
350
351 private void pad(final long count, final int border) throws IOException {
352 long skip = count % border;
…lines 353–414 unchanged (62 lines)

After

…lines 1–339 unchanged (339 lines)
340 * @throws IOException
341 * if an I/O error has occurred or if a CPIO file error has
342 * occurred
343 */
344 public void close() throws IOException {
345 if (!this.closed) {
346 this.finish();
347 super.close();
348 this.closed = true;
349 }
350 }
351
352 private void pad(final long count, final int border) throws IOException {
…lines 353–415 unchanged (63 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 "cpio"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "io"
. "."
identifier "FilterOutputStream"
; ";"
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 "io"
. "."
identifier "OutputStream"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "util"
. "."
identifier "HashMap"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "apache"
. "."
identifier "commons"
. "."
identifier "compress"
. "."
identifier "archivers"
. "."
identifier "ArchiveEntry"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "apache"
. "."
identifier "commons"
. "."
identifier "compress"
. "."
identifier "archivers"
. "."
identifier "ArchiveOutputStream"
; ";"
block_comment "/**\n * CPIOArchiveOutputStream is a stream for writing CPIO "...
class_declaration
modifiers
public "public"
class "class"
identifier "CpioArchiveOutputStream"
superclass
extends "extends"
type_identifier "ArchiveOutputStream"
super_interfaces
implements "implements"
type_list
type_identifier "CpioConstants"
class_body
{ "{"
field_declaration
modifiers
private "private"
type_identifier "CpioArchiveEntry"
variable_declarator
identifier "cpioEntry"
; ";"
field_declaration
modifiers
private "private"
boolean_type "boolean"
variable_declarator
identifier "closed"
= "="
false "false"
; ";"
field_declaration
modifiers
private "private"
boolean_type "boolean"
variable_declarator
identifier "finished"
; ";"
field_declaration
modifiers
private "private"
integral_type
short "short"
variable_declarator
identifier "entryFormat"
= "="
identifier "FORMAT_NEW"
; ";"
field_declaration
modifiers
private "private"
final "final"
type_identifier "HashMap"
variable_declarator
identifier "names"
= "="
object_creation_expression
new "new"
type_identifier "HashMap"
argument_list
( "("
) ")"
; ";"
field_declaration
modifiers
private "private"
integral_type
long "long"
variable_declarator
identifier "crc"
= "="
decimal_integer_literal "0"
; ";"
field_declaration
modifiers
private "private"
integral_type
long "long"
variable_declarator
identifier "written"
; ";"
field_declaration
modifiers
private "private"
final "final"
type_identifier "OutputStream"
variable_declarator
identifier "out"
; ";"
block_comment "/**\n * Construct the cpio output stream with a specified"...
constructor_declaration (+45 nodes collapsed)
block_comment "/**\n * Construct the cpio output stream. The format for "...
constructor_declaration (+24 nodes collapsed)
block_comment "/**\n * Check to make sure that this stream has not been "...
method_declaration (+39 nodes collapsed)
block_comment "/**\n * Set a default header format. This will be used if"...
method_declaration (+84 nodes collapsed)
block_comment "/**\n * Begins writing a new CPIO file entry and position"...
method_declaration (+198 nodes collapsed)
method_declaration (+167 nodes collapsed)
method_declaration (+310 nodes collapsed)
method_declaration (+222 nodes collapsed)
method_declaration (+262 nodes collapsed)
block_comment "/*(non-Javadoc)\n * \n * @see\n * org.apache.common"...
method_declaration (+272 nodes collapsed)
block_comment "/**\n * Writes an array of bytes to the current CPIO entr"...
method_declaration (+257 nodes collapsed)
block_comment "/**\n * Finishes writing the contents of the CPIO output "...
method_declaration (+136 nodes collapsed)
block_comment "/**\n * Closes the CPIO output stream as well as the stre"...
method_declaration
modifiers
public "public"
void_type "void"
identifier "close"
formal_parameters
( "("
) ")"
throws
throws "throws"
type_identifier "IOException"
block
{ "{"
if_statement
if "if"
parenthesized_expression
( "("
unary_expression
! "!"
field_access
this "this"
. "."
identifier "closed"
) ")"
block
{ "{"
expression_statement
method_invocation
super "super"
. "."
identifier "close"
argument_list
( "("
) ")"
; ";"
expression_statement
assignment_expression
field_access
this "this"
. "."
identifier "closed"
= "="
true "true"
; ";"
} "}"
} "}"
method_declaration (+89 nodes collapsed)
method_declaration (+65 nodes collapsed)
method_declaration (+258 nodes collapsed)
method_declaration (+45 nodes collapsed)
block_comment "/*\n * (non-Javadoc)\n * \n * @see\n * org.apach"...
method_declaration (+31 nodes collapsed)
block_comment "/*\n * (non-Javadoc)\n * \n * @see java.io.OutputSt"...
method_declaration (+28 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 "cpio"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "io"
. "."
identifier "FilterOutputStream"
; ";"
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 "io"
. "."
identifier "OutputStream"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "util"
. "."
identifier "HashMap"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "apache"
. "."
identifier "commons"
. "."
identifier "compress"
. "."
identifier "archivers"
. "."
identifier "ArchiveEntry"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "apache"
. "."
identifier "commons"
. "."
identifier "compress"
. "."
identifier "archivers"
. "."
identifier "ArchiveOutputStream"
; ";"
block_comment "/**\n * CPIOArchiveOutputStream is a stream for writing CPIO "...
class_declaration
modifiers
public "public"
class "class"
identifier "CpioArchiveOutputStream"
superclass
extends "extends"
type_identifier "ArchiveOutputStream"
super_interfaces
implements "implements"
type_list
type_identifier "CpioConstants"
class_body
{ "{"
field_declaration
modifiers
private "private"
type_identifier "CpioArchiveEntry"
variable_declarator
identifier "cpioEntry"
; ";"
field_declaration
modifiers
private "private"
boolean_type "boolean"
variable_declarator
identifier "closed"
= "="
false "false"
; ";"
field_declaration
modifiers
private "private"
boolean_type "boolean"
variable_declarator
identifier "finished"
; ";"
field_declaration
modifiers
private "private"
integral_type
short "short"
variable_declarator
identifier "entryFormat"
= "="
identifier "FORMAT_NEW"
; ";"
field_declaration
modifiers
private "private"
final "final"
type_identifier "HashMap"
variable_declarator
identifier "names"
= "="
object_creation_expression
new "new"
type_identifier "HashMap"
argument_list
( "("
) ")"
; ";"
field_declaration
modifiers
private "private"
integral_type
long "long"
variable_declarator
identifier "crc"
= "="
decimal_integer_literal "0"
; ";"
field_declaration
modifiers
private "private"
integral_type
long "long"
variable_declarator
identifier "written"
; ";"
field_declaration
modifiers
private "private"
final "final"
type_identifier "OutputStream"
variable_declarator
identifier "out"
; ";"
block_comment "/**\n * Construct the cpio output stream with a specified"...
constructor_declaration (+45 nodes collapsed)
block_comment "/**\n * Construct the cpio output stream. The format for "...
constructor_declaration (+24 nodes collapsed)
block_comment "/**\n * Check to make sure that this stream has not been "...
method_declaration (+39 nodes collapsed)
block_comment "/**\n * Set a default header format. This will be used if"...
method_declaration (+84 nodes collapsed)
block_comment "/**\n * Begins writing a new CPIO file entry and position"...
method_declaration (+198 nodes collapsed)
method_declaration (+167 nodes collapsed)
method_declaration (+310 nodes collapsed)
method_declaration (+222 nodes collapsed)
method_declaration (+262 nodes collapsed)
block_comment "/*(non-Javadoc)\n * \n * @see\n * org.apache.common"...
method_declaration (+272 nodes collapsed)
block_comment "/**\n * Writes an array of bytes to the current CPIO entr"...
method_declaration (+257 nodes collapsed)
block_comment "/**\n * Finishes writing the contents of the CPIO output "...
method_declaration (+136 nodes collapsed)
block_comment "/**\n * Closes the CPIO output stream as well as the stre"...
method_declaration
modifiers
public "public"
void_type "void"
identifier "close"
formal_parameters
( "("
) ")"
throws
throws "throws"
type_identifier "IOException"
block
{ "{"
if_statement
if "if"
parenthesized_expression
( "("
unary_expression
! "!"
field_access
this "this"
. "."
identifier "closed"
) ")"
block
{ "{"
expression_statement
method_invocation
this "this"
. "."
identifier "finish"
argument_list
( "("
) ")"
; ";"
expression_statement
method_invocation
super "super"
. "."
identifier "close"
argument_list
( "("
) ")"
; ";"
expression_statement
assignment_expression
field_access
this "this"
. "."
identifier "closed"
= "="
true "true"
; ";"
} "}"
} "}"
method_declaration (+89 nodes collapsed)
method_declaration (+65 nodes collapsed)
method_declaration (+258 nodes collapsed)
method_declaration (+45 nodes collapsed)
block_comment "/*\n * (non-Javadoc)\n * \n * @see\n * org.apach"...
method_declaration (+31 nodes collapsed)
block_comment "/*\n * (non-Javadoc)\n * \n * @see java.io.OutputSt"...
method_declaration (+28 nodes collapsed)
} "}"