if (myEnd != COUNT_UNUSED) {// Are we processing a file sequence?
String tn = Thread.currentThread().getName();
log.info(tn + " Detected end of sequence.");
throw new JMeterStopThreadException("End of sequence");
}
line = ERR_IND;
if (myEnd != COUNT_UNUSED) {// Are we processing a file
// sequence?
log.info(tn + " Detected end of sequence.");
throw new JMeterStopThreadException("End of sequence");
}
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/functions/StringFromFile.java
|
|
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/functions/StringFromFile.java
|
Method name: String execute(SampleResult, Sampler)
|
|
Method name: String execute(SampleResult, Sampler)
|
Number of AST nodes: 4
|
|
Number of AST nodes: 4
|
|
| | | 1 | line = ERR_IND;↵
|
1 | if (myEnd != COUNT_UNUSED) {// Are we processing a file sequence?↵ | | 2 | if (myEnd != COUNT_UNUSED) {// Are we processing a file↵
|
2 | String tn = Thread.currentThread().getName();↵ | | |
|
|
| | | 3 | // sequence?↵
|
3 | log.info(tn + " Detected end of sequence.");↵ | | 4 | log.info(tn + " Detected end of sequence.");↵
|
4 | throw new JMeterStopThreadException("End of sequence");↵ | | 5 | throw new JMeterStopThreadException("End of sequence");↵
|
5 | } | | 6 | }
|
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.3 |
Clones location | Clones are in the same method |
Number of node comparisons | 17 |
-
{Refactorable}
Mapping Summary
Number of mapped statements | 3 |
Number of unmapped statements in the first code fragment | 1 |
Number of unmapped statements in the second code fragment | 1 |
Time elapsed for statement mapping (ms) | 0.5 |
Clone type | Type 3 |
Mapped Statements
ID |
Statement |
|
ID |
Statement |
| | | 17 | line = ERR_IND; |
22 | if (myEnd != COUNT_UNUSED) | | 18 | if (myEnd != COUNT_UNUSED) |
23 | String tn = Thread.currentThread().getName(); | | | |
24 | log.info(tn + " Detected end of sequence."); | | 19 | log.info(tn + " Detected end of sequence."); |
25 | throw new JMeterStopThreadException("End of sequence"); | | 20 | throw new JMeterStopThreadException("End of sequence"); |
Precondition Violations (0)
Row |
Violation |