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–291 unchanged (291 lines)
292 {
293 // if there are required options that have not been
294 // processsed
295 if (requiredOptions.size() > 0)
296 {
297 Iterator iter = requiredOptions.iterator();
298 StringBuffer buff = new StringBuffer();
299
300
301 // loop through the required options
302 while (iter.hasNext())
303 {
304 buff.append(iter.next());
305 }
…lines 306–416 unchanged (111 lines)

After

…lines 1–291 unchanged (291 lines)
292 {
293 // if there are required options that have not been
294 // processsed
295 if (requiredOptions.size() > 0)
296 {
297 Iterator iter = requiredOptions.iterator();
298 StringBuffer buff = new StringBuffer("Missing required option");
299 buff.append(requiredOptions.size() == 1 ? "" : "s");
300 buff.append(": ");
301
302
303 // loop through the required options
304 while (iter.hasNext())
305 {
306 buff.append(iter.next());
…lines 307–418 unchanged (112 lines)

Before

program
block_comment "/**\n * Licensed to the Apache Software Foundation (ASF) unde"...
package_declaration
package "package"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "apache"
. "."
identifier "commons"
. "."
identifier "cli"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "util"
. "."
identifier "Arrays"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "util"
. "."
identifier "Enumeration"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "util"
. "."
identifier "Iterator"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "util"
. "."
identifier "List"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "util"
. "."
identifier "ListIterator"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "util"
. "."
identifier "Properties"
; ";"
block_comment "/**\n * <p><code>Parser</code> creates {@link CommandLine}s.<"...
class_declaration
modifiers
public "public"
abstract "abstract"
class "class"
identifier "Parser"
super_interfaces
implements "implements"
type_list
type_identifier "CommandLineParser"
class_body
{ "{"
block_comment "/** commandline instance */"
field_declaration
modifiers
private "private"
type_identifier "CommandLine"
variable_declarator
identifier "cmd"
; ";"
block_comment "/** current Options */"
field_declaration
modifiers
private "private"
type_identifier "Options"
variable_declarator
identifier "options"
; ";"
block_comment "/** list of required options strings */"
field_declaration
modifiers
private "private"
type_identifier "List"
variable_declarator
identifier "requiredOptions"
; ";"
block_comment "/**\n * <p>Subclasses must implement this method to reduc"...
method_declaration (+29 nodes collapsed)
block_comment "/**\n * <p>Parses the specified <code>arguments</code> \n "...
method_declaration (+40 nodes collapsed)
block_comment "/**\n * Parse the arguments according to the specified op"...
method_declaration (+44 nodes collapsed)
block_comment "/**\n * <p>Parses the specified <code>arguments</code> \n "...
method_declaration (+44 nodes collapsed)
block_comment "/**\n * Parse the arguments according to the specified op"...
method_declaration (+501 nodes collapsed)
block_comment "/**\n * <p>Sets the values of Options using the values in"...
method_declaration (+270 nodes collapsed)
block_comment "/**\n * <p>Throws a {@link MissingOptionException} if all"...
method_declaration
modifiers
private "private"
void_type "void"
identifier "checkRequiredOptions"
formal_parameters
( "("
) ")"
throws
throws "throws"
type_identifier "MissingOptionException"
block
{ "{"
line_comment "// if there are required options that have not been"
line_comment "// processsed"
if_statement
if "if"
parenthesized_expression
( "("
binary_expression
method_invocation
identifier "requiredOptions"
. "."
identifier "size"
argument_list
( "("
) ")"
> ">"
decimal_integer_literal "0"
) ")"
block
{ "{"
local_variable_declaration
type_identifier "Iterator"
variable_declarator
identifier "iter"
= "="
method_invocation
identifier "requiredOptions"
. "."
identifier "iterator"
argument_list
( "("
) ")"
; ";"
local_variable_declaration
type_identifier "StringBuffer"
variable_declarator
identifier "buff"
= "="
object_creation_expression
new "new"
type_identifier "StringBuffer"
argument_list
( "("
) ")"
; ";"
line_comment "// loop through the required options"
while_statement (+31 nodes collapsed)
throw_statement
throw "throw"
object_creation_expression
new "new"
type_identifier "MissingOptionException"
argument_list
( "("
method_invocation
identifier "buff"
. "."
identifier "toString"
argument_list
( "("
) ")"
) ")"
; ";"
} "}"
} "}"
block_comment "/**\n * <p>Process the argument values for the specified "...
method_declaration (+196 nodes collapsed)
block_comment "/**\n * <p>Process the Option specified by <code>arg</cod"...
method_declaration (+220 nodes collapsed)
} "}"

After

program
block_comment "/**\n * Licensed to the Apache Software Foundation (ASF) unde"...
package_declaration
package "package"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "apache"
. "."
identifier "commons"
. "."
identifier "cli"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "util"
. "."
identifier "Arrays"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "util"
. "."
identifier "Enumeration"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "util"
. "."
identifier "Iterator"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "util"
. "."
identifier "List"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "util"
. "."
identifier "ListIterator"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "util"
. "."
identifier "Properties"
; ";"
block_comment "/**\n * <p><code>Parser</code> creates {@link CommandLine}s.<"...
class_declaration
modifiers
public "public"
abstract "abstract"
class "class"
identifier "Parser"
super_interfaces
implements "implements"
type_list
type_identifier "CommandLineParser"
class_body
{ "{"
block_comment "/** commandline instance */"
field_declaration
modifiers
private "private"
type_identifier "CommandLine"
variable_declarator
identifier "cmd"
; ";"
block_comment "/** current Options */"
field_declaration
modifiers
private "private"
type_identifier "Options"
variable_declarator
identifier "options"
; ";"
block_comment "/** list of required options strings */"
field_declaration
modifiers
private "private"
type_identifier "List"
variable_declarator
identifier "requiredOptions"
; ";"
block_comment "/**\n * <p>Subclasses must implement this method to reduc"...
method_declaration (+29 nodes collapsed)
block_comment "/**\n * <p>Parses the specified <code>arguments</code> \n "...
method_declaration (+40 nodes collapsed)
block_comment "/**\n * Parse the arguments according to the specified op"...
method_declaration (+44 nodes collapsed)
block_comment "/**\n * <p>Parses the specified <code>arguments</code> \n "...
method_declaration (+44 nodes collapsed)
block_comment "/**\n * Parse the arguments according to the specified op"...
method_declaration (+501 nodes collapsed)
block_comment "/**\n * <p>Sets the values of Options using the values in"...
method_declaration (+270 nodes collapsed)
block_comment "/**\n * <p>Throws a {@link MissingOptionException} if all"...
method_declaration
modifiers
private "private"
void_type "void"
identifier "checkRequiredOptions"
formal_parameters
( "("
) ")"
throws
throws "throws"
type_identifier "MissingOptionException"
block
{ "{"
line_comment "// if there are required options that have not been"
line_comment "// processsed"
if_statement
if "if"
parenthesized_expression
( "("
binary_expression
method_invocation
identifier "requiredOptions"
. "."
identifier "size"
argument_list
( "("
) ")"
> ">"
decimal_integer_literal "0"
) ")"
block
{ "{"
local_variable_declaration
type_identifier "Iterator"
variable_declarator
identifier "iter"
= "="
method_invocation
identifier "requiredOptions"
. "."
identifier "iterator"
argument_list
( "("
) ")"
; ";"
local_variable_declaration
type_identifier "StringBuffer"
variable_declarator
identifier "buff"
= "="
object_creation_expression
new "new"
type_identifier "StringBuffer"
argument_list
( "("
string_literal
" "\""
string_fragment "Missing required option"
" "\""
) ")"
; ";"
expression_statement
method_invocation
identifier "buff"
. "."
identifier "append"
argument_list
( "("
ternary_expression
binary_expression
method_invocation
identifier "requiredOptions"
. "."
identifier "size"
argument_list
( "("
) ")"
== "=="
decimal_integer_literal "1"
? "?"
string_literal
" "\""
" "\""
: ":"
string_literal
" "\""
string_fragment "s"
" "\""
) ")"
; ";"
expression_statement
method_invocation
identifier "buff"
. "."
identifier "append"
argument_list
( "("
string_literal
" "\""
string_fragment ": "
" "\""
) ")"
; ";"
line_comment "// loop through the required options"
while_statement (+31 nodes collapsed)
throw_statement
throw "throw"
object_creation_expression
new "new"
type_identifier "MissingOptionException"
argument_list
( "("
method_invocation
identifier "buff"
. "."
identifier "toString"
argument_list
( "("
) ")"
) ")"
; ";"
} "}"
} "}"
block_comment "/**\n * <p>Process the argument values for the specified "...
method_declaration (+196 nodes collapsed)
block_comment "/**\n * <p>Process the Option specified by <code>arg</cod"...
method_declaration (+220 nodes collapsed)
} "}"