if (total.total.getNumSamples() != 0) {// Only print delta if different from total str = format(name, total.delta, "+"); if (TOLOG) { log.info(str); } if (TOOUT) { System.out.println(str); } }
if (myTotal != null && myDelta != null &&myTotal.getNumSamples() != myDelta.getNumSamples()) { str = format(myName, myTotal, "="); if (TOLOG) { log.info(str); } if (TOOUT) { System.out.println(str); } }
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/reporters/Summariser.java File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/reporters/Summariser.java
Method name: void testEnded(String) Method name: void sampleOccurred(SampleEvent)
Number of AST nodes: 6 Number of AST nodes: 6
1
if (total.total.getNumSamples() != 0) {// Only print delta if different from total
1
if (myTotal != null && myDelta != null &&myTotal.getNumSamples() != myDelta.getNumSamples()) {
2
				str = format(name, total.delta, "+");
2
				str = format(myName, myTotal, "=");
3
				if (TOLOG) {
3
				if (TOLOG) {
4
					log.info(str);
4
					log.info(str);
5
				}
5
				}
6
				if (TOOUT) {
6
				if (TOOUT) {
7
					System.out.println(str);
7
					System.out.println(str);
8
				}
8
				}
9
			}
9
			}
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.2
Clones locationClones are declared in the same class
Number of node comparisons15
  1. {Refactorable}
    Mapping Summary
    Number of mapped statements5
    Number of unmapped statements in the first code fragment0
    Number of unmapped statements in the second code fragment0
    Time elapsed for statement mapping (ms)1.3
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    11
    str = format(name, total.delta, "+");
    11
    str = format(name, total.delta, "+");
    23
    str = format(myName, myTotal, "=");
    Differences
    Expression1Expression2Difference
    namemyNameVARIABLE_NAME_MISMATCH
    total.deltamyTotalTYPE_COMPATIBLE_REPLACEMENT
    "+""="LITERAL_VALUE_MISMATCH
    23
    str = format(myName, myTotal, "=");
    12
    if (TOLOG)
    24
    if (TOLOG)
    13
    log.info(str);
    25
    log.info(str);
    14
    if (TOOUT)
    26
    if (TOOUT)
    15
    System.out.println(str);
    27
    System.out.println(str);
    Precondition Violations (0)
    Row Violation