final CLOptionDescriptor descriptor = getDescriptorFor(m_option.getDescriptor().getId()); final String message = "Unable to parse first argument for option " + getOptionDescription(descriptor); throw new ParseException(message, 0);
final CLOptionDescriptor descriptor = getDescriptorFor(m_option.getDescriptor().getId()); final String message = "Missing argument to option " + getOptionDescription(descriptor); throw new ParseException(message, 0);
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 parse()
Number of AST nodes: 3 Number of AST nodes: 3
1
final CLOptionDescriptor descriptor = getDescriptorFor(m_option.getDescriptor().getId());
1
final CLOptionDescriptor descriptor = getDescriptorFor(m_option.getDescriptor().getId());
2
					final String message = "Unable to parse first argument for option "
2
				final String message = "Missing argument to option "
3
							+ getOptionDescription(descriptor);
3
 + getOptionDescription(descriptor);
4
					throw new ParseException(message, 0);
4
				throw new ParseException(message, 0);
Summary
Number of common nesting structure subtrees1
Number of refactorable cases1
Number of non-refactorable cases0
Time elapsed for finding largest common nesting structure subtrees (ms)0.0
Clones locationClones are declared in the same class
Number of node comparisons9
  1. {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
    31
    final CLOptionDescriptor descriptor = getDescriptorFor(m_option.getDescriptor().getId());
    25
    final CLOptionDescriptor descriptor = getDescriptorFor(m_option.getDescriptor().getId());
    32
    final String message = "Unable to parse first argument for option " + getOptionDescription(descriptor);
    32
    final String message = "Unable to parse first argument for option " + getOptionDescription(descriptor);
    26
    final String message = "Missing argument to option " + getOptionDescription(descriptor);
    Differences
    Expression1Expression2Difference
    "Unable to parse first argument for option ""Missing argument to option "LITERAL_VALUE_MISMATCH
    26
    final String message = "Missing argument to option " + getOptionDescription(descriptor);
    33
    throw new ParseException(message, 0);
    27
    throw new ParseException(message, 0);
    Precondition Violations (0)
    Row Violation