final CLOptionDescriptor descriptor = getDescriptorFor(m_option.getDescriptor().getId());
final String message = "Missing argument to 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 parse()
|
|
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 = "Missing argument to option " + getOptionDescription(descriptor);↵ | | 2 | final String message = "Missing argument to option " + getOptionDescription(descriptor);↵
|
3 | throw new ParseException(message, 0); | | 3 | throw new ParseException(message, 0);
|
See real code fragment |
|
See real code fragment |
Summary
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 1 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.0 |
Clones location | Clones are in the same method |
Number of node comparisons | 10 |
-
{Refactorable}
Mapping Summary
Number of mapped statements | 3 |
Number of unmapped statements in the first code fragment | 0 |
Number of unmapped statements in the second code fragment | 0 |
Time elapsed for statement mapping (ms) | 0.0 |
Clone type | Type 1 |
Mapped Statements
ID |
Statement |
|
ID |
Statement |
32 | final CLOptionDescriptor descriptor = getDescriptorFor(m_option.getDescriptor().getId()); | | 25 | final CLOptionDescriptor descriptor = getDescriptorFor(m_option.getDescriptor().getId()); |
33 | final String message = "Missing argument to option " + getOptionDescription(descriptor); | | 26 | final String message = "Missing argument to option " + getOptionDescription(descriptor); |
34 | throw new ParseException(message, 0); | | 27 | throw new ParseException(message, 0); |
Precondition Violations (0)
Row |
Violation |