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–313 unchanged (313 lines)
314
315
316 // loop through the required options
317 while (iter.hasNext())
318 {
319 buff.append(iter.next());
320 }
321
322 throw new MissingOptionException(buff.toString());
323 }
324 }
325
326 /**
327 * <p>Process the argument values for the specified Option
328 * <code>opt</code> using the values retrieved from the
…lines 329–431 unchanged (103 lines)

After

…lines 1–313 unchanged (313 lines)
314
315
316 // loop through the required options
317 while (iter.hasNext())
318 {
319 buff.append(iter.next());
320 buff.append(", ");
321 }
322
323 throw new MissingOptionException(buff.substring(0, buff.length() - 2));
324 }
325 }
326
327 /**
328 * <p>Process the argument values for the specified Option
329 * <code>opt</code> using the values retrieved from the
…lines 330–432 unchanged (103 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
protected "protected"
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"
; ";"
method_declaration (+40 nodes collapsed)
method_declaration
modifiers
protected "protected"
type_identifier "Options"
identifier "getOptions"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
identifier "options"
; ";"
} "}"
method_declaration
modifiers
protected "protected"
type_identifier "List"
identifier "getRequiredOptions"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
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 (+493 nodes collapsed)
block_comment "/**\n * <p>Sets the values of Options using the values in"...
method_declaration (+274 nodes collapsed)
block_comment "/**\n * <p>Throws a {@link MissingOptionException} if all"...
method_declaration
modifiers
protected "protected"
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
method_invocation
identifier "getRequiredOptions"
argument_list
( "("
) ")"
. "."
identifier "size"
argument_list
( "("
) ")"
> ">"
decimal_integer_literal "0"
) ")"
block
{ "{"
local_variable_declaration
type_identifier "Iterator"
variable_declarator
identifier "iter"
= "="
method_invocation
method_invocation
identifier "getRequiredOptions"
argument_list
( "("
) ")"
. "."
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 (+33 nodes collapsed)
expression_statement
method_invocation
identifier "buff"
. "."
identifier "append"
argument_list
( "("
string_literal
" "\""
string_fragment ": "
" "\""
) ")"
; ";"
line_comment "// loop through the required options"
while_statement
while "while"
parenthesized_expression
( "("
method_invocation
identifier "iter"
. "."
identifier "hasNext"
argument_list
( "("
) ")"
) ")"
block
{ "{"
expression_statement
method_invocation
identifier "buff"
. "."
identifier "append"
argument_list
( "("
method_invocation
identifier "iter"
. "."
identifier "next"
argument_list
( "("
) ")"
) ")"
; ";"
} "}"
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 (+200 nodes collapsed)
block_comment "/**\n * <p>Process the Option specified by <code>arg</cod"...
method_declaration (+244 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
protected "protected"
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"
; ";"
method_declaration (+40 nodes collapsed)
method_declaration
modifiers
protected "protected"
type_identifier "Options"
identifier "getOptions"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
identifier "options"
; ";"
} "}"
method_declaration
modifiers
protected "protected"
type_identifier "List"
identifier "getRequiredOptions"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
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 (+493 nodes collapsed)
block_comment "/**\n * <p>Sets the values of Options using the values in"...
method_declaration (+274 nodes collapsed)
block_comment "/**\n * <p>Throws a {@link MissingOptionException} if all"...
method_declaration
modifiers
protected "protected"
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
method_invocation
identifier "getRequiredOptions"
argument_list
( "("
) ")"
. "."
identifier "size"
argument_list
( "("
) ")"
> ">"
decimal_integer_literal "0"
) ")"
block
{ "{"
local_variable_declaration
type_identifier "Iterator"
variable_declarator
identifier "iter"
= "="
method_invocation
method_invocation
identifier "getRequiredOptions"
argument_list
( "("
) ")"
. "."
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 (+33 nodes collapsed)
expression_statement
method_invocation
identifier "buff"
. "."
identifier "append"
argument_list
( "("
string_literal
" "\""
string_fragment ": "
" "\""
) ")"
; ";"
line_comment "// loop through the required options"
while_statement
while "while"
parenthesized_expression
( "("
method_invocation
identifier "iter"
. "."
identifier "hasNext"
argument_list
( "("
) ")"
) ")"
block
{ "{"
expression_statement
method_invocation
identifier "buff"
. "."
identifier "append"
argument_list
( "("
method_invocation
identifier "iter"
. "."
identifier "next"
argument_list
( "("
) ")"
) ")"
; ";"
expression_statement
method_invocation
identifier "buff"
. "."
identifier "append"
argument_list
( "("
string_literal
" "\""
string_fragment ", "
" "\""
) ")"
; ";"
} "}"
throw_statement
throw "throw"
object_creation_expression
new "new"
type_identifier "MissingOptionException"
argument_list
( "("
method_invocation
identifier "buff"
. "."
identifier "substring"
argument_list
( "("
decimal_integer_literal "0"
, ","
binary_expression
method_invocation
identifier "buff"
. "."
identifier "length"
argument_list
( "("
) ")"
- "-"
decimal_integer_literal "2"
) ")"
) ")"
; ";"
} "}"
} "}"
block_comment "/**\n * <p>Process the argument values for the specified "...
method_declaration (+200 nodes collapsed)
block_comment "/**\n * <p>Process the Option specified by <code>arg</cod"...
method_declaration (+244 nodes collapsed)
} "}"