String[] order = new String[] { "one", "two", "three", "four" }; int counter = 0; controller.setRunningVersion(true); sub_1.setRunningVersion(true); sub_2.setRunningVersion(true); sub_3.setRunningVersion(true); controller.initialize();
String[] order = new String[] { "one", "three", "two", "three", "four", "three", "one", "three", "two", "three", "five", "three", "one", "three", "two", "three", "six", "three", "one", "three" }; int counter = 0; controller.setRunningVersion(true); sub_1.setRunningVersion(true); sub_2.setRunningVersion(true); sub_3.setRunningVersion(true); controller.initialize();
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/test/src/org/apache/jmeter/control/TestInterleaveControl.java File path: /jakarta-jmeter-2.3.2/test/src/org/apache/jmeter/control/TestInterleaveControl.java
Method name: void testProcessing5() Method name: void testProcessing2()
Number of AST nodes: 7 Number of AST nodes: 7
1
String[] order = new String[] { "one", "two", "three", "four"
1
String[] order = new String[] { "one", "three", "two", "three", "four", "three", "one", "three", "two",
2
 };
2
					"three", "five", "three", "one", "three", "two", "three", "six", "three", "one", "three" };
3
			int counter = 0;
3
			int counter = 0;
4
			controller.setRunningVersion(true);
4
			controller.setRunningVersion(true);
5
			sub_1.setRunningVersion(true);
5
			sub_1.setRunningVersion(true);
6
			sub_2.setRunningVersion(true);
6
			sub_2.setRunningVersion(true);
7
			sub_3.setRunningVersion(true);
7
			sub_3.setRunningVersion(true);
8
			controller.initialize();
8
			controller.initialize();
Summary
Number of common nesting structure subtrees1
Number of refactorable cases0
Number of non-refactorable cases1
Time elapsed for finding largest common nesting structure subtrees (ms)0.0
Clones locationClones are declared in the same class
Number of node comparisons50
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements7
    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
    14
    String[] order = new String[] {"one", "two", "three", "four"};
    14
    String[] order = new String[] {"one", "two", "three", "four"};
    18
    String[] order = new String[] {"one", "three", "two", "three", "four", "three", "one", "three", "two", "three", "five", "three", "one", "three", "two", "three", "six", "three", "one", "three"};
    Differences
    Expression1Expression2Difference
    {"one","two","three","four"}{"one","three","two","three","four","three","one","three","two","three","five","three","one","three","two","three","six","three","one","three"}ARRAY_INITIALIZER_EXPRESSION_NUMBER_MISMATCH
    18
    String[] order = new String[] {"one", "three", "two", "three", "four", "three", "one", "three", "two", "three", "five", "three", "one", "three", "two", "three", "six", "three", "one", "three"};
    15
    int counter = 0;
    19
    int counter = 0;
    16
    controller.setRunningVersion(true);
    20
    controller.setRunningVersion(true);
    17
    sub_1.setRunningVersion(true);
    21
    sub_1.setRunningVersion(true);
    18
    sub_2.setRunningVersion(true);
    18
    sub_2.setRunningVersion(true);
    22
    sub_2.setRunningVersion(true);
    Differences
    Expression1Expression2Difference
    org.apache.jmeter.control.GenericControllerorg.apache.jmeter.control.LoopControllerSUBCLASS_TYPE_MISMATCH
    22
    sub_2.setRunningVersion(true);
    19
    sub_3.setRunningVersion(true);
    23
    sub_3.setRunningVersion(true);
    20
    controller.initialize();
    24
    controller.initialize();
    Precondition Violations (1)
    Row Violation
    1Clone fragment #1 returns variables order, counter , while Clone fragment #2 returns variables order, counter