final CLOptionDescriptor[] options = { FILE }; final CLArgsParser parser = new CLArgsParser(args, options); assertNull(parser.getErrorString(), parser.getErrorString());
final CLOptionDescriptor[] options = { test }; final CLArgsParser parser = new CLArgsParser(args, options); assertNull(parser.getErrorString(), parser.getErrorString());
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/test/src/org/apache/commons/cli/avalon/ClutilTestCase.java File path: /jakarta-jmeter-2.3.2/test/src/org/apache/commons/cli/avalon/ClutilTestCase.java
Method name: void testArgumentLookup() Method name: void testNullDescription()
Number of AST nodes: 3 Number of AST nodes: 3
1
final CLOptionDescriptor[] options = { FILE };
1
final CLOptionDescriptor[] options = { test };
2
        final CLArgsParser parser = new CLArgsParser(args, options);
2
        final CLArgsParser parser = new CLArgsParser(args, options);
3
        assertNull(parser.getErrorString(), parser.getErrorString());
3
        assertNull(parser.getErrorString(), parser.getErrorString());
Summary
Number of common nesting structure subtrees1
Number of refactorable cases0
Number of non-refactorable cases1
Time elapsed for finding largest common nesting structure subtrees (ms)0.0
Clones locationClones are declared in the same class
Number of node comparisons5
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements3
    Number of unmapped statements in the first code fragment0
    Number of unmapped statements in the second code fragment0
    Time elapsed for statement mapping (ms)0.0
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    2
    final CLOptionDescriptor[] options = {FILE};
    2
    final CLOptionDescriptor[] options = {FILE};
    3
    final CLOptionDescriptor[] options = {test};
    Differences
    Expression1Expression2Difference
    FILEtestVARIABLE_NAME_MISMATCH
    3
    final CLOptionDescriptor[] options = {test};
    3
    final CLArgsParser parser = new CLArgsParser(args, options);
    4
    final CLArgsParser parser = new CLArgsParser(args, options);
    4
    assertNull(parser.getErrorString(), parser.getErrorString());
    5
    assertNull(parser.getErrorString(), parser.getErrorString());
    Precondition Violations (1)
    Row Violation
    1Clone fragment #1 returns variables parser , while Clone fragment #2 returns variables parser, options