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–329 unchanged (329 lines)
330 * @throws IOException
331 * if an I/O error has occurred or if a CPIO file error has
332 * occurred
333 */
334 public void close() throws IOException {
335 if (!this.closed) {
336 this.finish();
337 out.close();
338 this.closed = true;
339 }
340 }
341
342 private void pad(int count) throws IOException{
…lines 343–390 unchanged (48 lines)

After

…lines 1–329 unchanged (329 lines)
330 * @throws IOException
331 * if an I/O error has occurred or if a CPIO file error has
332 * occurred
333 */
334 public void close() throws IOException {
335 if (!this.closed) {
336 out.close();
337 this.closed = true;
338 }
339 }
340
341 private void pad(int count) throws IOException{
342 if (count > 0){
…lines 343–389 unchanged (47 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 "File"
; ";"
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"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "apache"
. "."
identifier "commons"
. "."
identifier "compress"
. "."
identifier "utils"
. "."
identifier "ArchiveUtils"
; ";"
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 "entry"
; ";"
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"
; ";"
block_comment "/**\n * See {@link CpioArchiveEntry#setFormat(short)} for"...
field_declaration
modifiers
private "private"
final "final"
integral_type
short "short"
variable_declarator
identifier "entryFormat"
; ";"
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 (+98 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 * Begins writing a new CPIO file entry and position"...
method_declaration (+231 nodes collapsed)
method_declaration (+170 nodes collapsed)
method_declaration (+290 nodes collapsed)
method_declaration (+222 nodes collapsed)
method_declaration (+242 nodes collapsed)
block_comment "/*(non-Javadoc)\n * \n * @see\n * org.apache.common"...
method_declaration (+190 nodes collapsed)
block_comment "/**\n * Writes an array of bytes to the current CPIO entr"...
method_declaration (+251 nodes collapsed)
block_comment "/**\n * Finishes writing the contents of the CPIO output "...
method_declaration (+126 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
identifier "out"
. "."
identifier "close"
argument_list
( "("
) ")"
; ";"
expression_statement
assignment_expression
field_access
this "this"
. "."
identifier "closed"
= "="
true "true"
; ";"
} "}"
} "}"
method_declaration (+58 nodes collapsed)
method_declaration (+65 nodes collapsed)
method_declaration (+259 nodes collapsed)
method_declaration (+46 nodes collapsed)
method_declaration (+33 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 "File"
; ";"
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"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "apache"
. "."
identifier "commons"
. "."
identifier "compress"
. "."
identifier "utils"
. "."
identifier "ArchiveUtils"
; ";"
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 "entry"
; ";"
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"
; ";"
block_comment "/**\n * See {@link CpioArchiveEntry#setFormat(short)} for"...
field_declaration
modifiers
private "private"
final "final"
integral_type
short "short"
variable_declarator
identifier "entryFormat"
; ";"
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 (+98 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 * Begins writing a new CPIO file entry and position"...
method_declaration (+231 nodes collapsed)
method_declaration (+170 nodes collapsed)
method_declaration (+290 nodes collapsed)
method_declaration (+222 nodes collapsed)
method_declaration (+242 nodes collapsed)
block_comment "/*(non-Javadoc)\n * \n * @see\n * org.apache.common"...
method_declaration (+190 nodes collapsed)
block_comment "/**\n * Writes an array of bytes to the current CPIO entr"...
method_declaration (+251 nodes collapsed)
block_comment "/**\n * Finishes writing the contents of the CPIO output "...
method_declaration (+126 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
identifier "out"
. "."
identifier "close"
argument_list
( "("
) ")"
; ";"
expression_statement
assignment_expression
field_access
this "this"
. "."
identifier "closed"
= "="
true "true"
; ";"
} "}"
} "}"
method_declaration (+58 nodes collapsed)
method_declaration (+65 nodes collapsed)
method_declaration (+259 nodes collapsed)
method_declaration (+46 nodes collapsed)
method_declaration (+33 nodes collapsed)
} "}"