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–11 unchanged (11 lines)
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 */
17package org.apache.commons.cli;
18
19import java.util.Arrays;
20import java.util.Enumeration;
21import java.util.Iterator;
22import java.util.List;
23import java.util.ListIterator;
24import java.util.Properties;
…lines 25–39 unchanged (15 lines)
40
41 /** list of required options strings */
42 private List requiredOptions;
43
44 protected void setOptions(final Options options) {
45 this.options = options;
46 this.requiredOptions = options.getRequiredOptions();
47 }
48
49 protected Options getOptions() {
50 return options;
51 }
52
…lines 53–432 unchanged (380 lines)

After

…lines 1–12 unchanged (12 lines)
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 */
17package org.apache.commons.cli;
18
19import java.util.ArrayList;
20import java.util.Arrays;
21import java.util.Enumeration;
22import java.util.Iterator;
23import java.util.List;
24import java.util.ListIterator;
25import java.util.Properties;
…lines 26–40 unchanged (15 lines)
41
42 /** list of required options strings */
43 private List requiredOptions;
44
45 protected void setOptions(final Options options) {
46 this.options = options;
47 this.requiredOptions = new ArrayList(options.getRequiredOptions());
48 }
49
50 protected Options getOptions() {
51 return options;
52 }
53
…lines 54–433 unchanged (380 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
modifiers
protected "protected"
void_type "void"
identifier "setOptions"
formal_parameters
( "("
formal_parameter
modifiers
final "final"
type_identifier "Options"
identifier "options"
) ")"
block
{ "{"
expression_statement
assignment_expression
field_access
this "this"
. "."
identifier "options"
= "="
identifier "options"
; ";"
expression_statement
assignment_expression
field_access
this "this"
. "."
identifier "requiredOptions"
= "="
method_invocation
identifier "options"
. "."
identifier "getRequiredOptions"
argument_list
( "("
) ")"
; ";"
} "}"
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 (+190 nodes collapsed)
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 "ArrayList"
; ";"
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
modifiers
protected "protected"
void_type "void"
identifier "setOptions"
formal_parameters
( "("
formal_parameter
modifiers
final "final"
type_identifier "Options"
identifier "options"
) ")"
block
{ "{"
expression_statement
assignment_expression
field_access
this "this"
. "."
identifier "options"
= "="
identifier "options"
; ";"
expression_statement
assignment_expression
field_access
this "this"
. "."
identifier "requiredOptions"
= "="
object_creation_expression
new "new"
type_identifier "ArrayList"
argument_list
( "("
method_invocation
identifier "options"
. "."
identifier "getRequiredOptions"
argument_list
( "("
) ")"
) ")"
; ";"
} "}"
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 (+190 nodes collapsed)
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)
} "}"