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
						}
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.3
Clones locationClones are in the same method
Number of node comparisons17
  1. {Refactorable}
    Mapping Summary
    Number of mapped statements3
    Number of unmapped statements in the first code fragment1
    Number of unmapped statements in the second code fragment1
    Time elapsed for statement mapping (ms)0.5
    Clone typeType 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