if ('-' == m_ch || 0 == m_ch) { getChar(); // consume stray character addOption(m_option); m_state = STATE_NORMAL; return; }
parse(); checkIncompatibilities(m_options); buildOptionIndex();
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/commons/cli/avalon/CLArgsParser.java File path: /jakarta-jmeter-2.3.2/src/org/apache/commons/cli/avalon/CLArgsParser.java
Method name: void parseArguments() Method name: void CLArgsParser(String[], CLOptionDescriptor[], ParserControl)
Number of AST nodes: 5 Number of AST nodes: 3
1
if ('-' == m_ch || 0 == m_ch) {
2
				getChar(); // consume stray character
3
				addOption
1
parse();
4
(m_option);
2
			checkIncompatibilities(m_options);
5
				m_state = STATE_NORMAL;
3
			
6
				return;
7
			}
4
buildOptionIndex();
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 comparisons12
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements1
    Number of unmapped statements in the first code fragment3
    Number of unmapped statements in the second code fragment2
    Time elapsed for statement mapping (ms)0.0
    Clone typeType 3
    Mapped Statements
    ID Statement ID Statement
    10
    getChar();
                                
    11
    addOption(m_option);
    11
    addOption(m_option);
    6
    parse();
    Differences
    Expression1Expression2Difference
    addOptionparseMETHOD_INVOCATION_NAME_MISMATCH
    addOption(m_option)parse()ARGUMENT_NUMBER_MISMATCH
    Preondition Violations
    Expression addOption(m_option) is a void method call, and thus it cannot be parameterized
    Expression parse() is a void method call, and thus it cannot be parameterized
    Expression addOption(m_option) is a void method call, and thus it cannot be parameterized
    Expression parse() is a void method call, and thus it cannot be parameterized
    6
    parse();
    12
    m_state = STATE_NORMAL;
                                                      
    13
    return;
    13
    return;
    Preondition Violations
    Unmatched return;
                          
    Precondition Violations (5)
    Row Violation
    1Expression addOption(m_option) is a void method call, and thus it cannot be parameterized
    2Expression parse() is a void method call, and thus it cannot be parameterized
    3Expression addOption(m_option) is a void method call, and thus it cannot be parameterized
    4Expression parse() is a void method call, and thus it cannot be parameterized
    5Unmatched return;