field = CSV_THREAD_COUNT1; text = parts[i++]; result.setGroupThreads(Integer.parseInt(text)); field = CSV_THREAD_COUNT2; text = parts[i++]; result.setAllThreads(Integer.parseInt(text));
field = CSV_SAMPLE_COUNT; text = parts[i++]; result.setSampleCount(Integer.parseInt(text)); field = CSV_ERROR_COUNT; text = parts[i++]; result.setErrorCount(Integer.parseInt(text));
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/save/CSVSaveService.java File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/save/CSVSaveService.java
Method name: SampleEvent makeResultFromDelimitedString(String[], SampleSaveConfiguration, long) Method name: SampleEvent makeResultFromDelimitedString(String[], SampleSaveConfiguration, long)
Number of AST nodes: 6 Number of AST nodes: 6
1
field = CSV_THREAD_COUNT1;
1
field = CSV_SAMPLE_COUNT;
2
                text = parts[i++];
2
                text = parts[i++];
3
                result.setGroupThreads(Integer.parseInt(text));
3
                result.setSampleCount(Integer.parseInt(text));
4
                
5
            	field = CSV_THREAD_COUNT2;
4
            	field = CSV_ERROR_COUNT;
6
                text = parts[i++];
5
                text = parts[i++];
7
                result.setAllThreads(Integer.parseInt(text));
6
                result.setErrorCount(Integer.parseInt(text));
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 in the same method
Number of node comparisons24
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements6
    Number of unmapped statements in the first code fragment0
    Number of unmapped statements in the second code fragment1
    Time elapsed for statement mapping (ms)0.0
    Clone typeType 3
    Mapped Statements
    ID Statement ID Statement
    59
    field = CSV_THREAD_COUNT1;
    59
    field = CSV_THREAD_COUNT1;
    80
    field = CSV_SAMPLE_COUNT;
    Differences
    Expression1Expression2Difference
    CSV_THREAD_COUNT1CSV_SAMPLE_COUNTVARIABLE_NAME_MISMATCH
    80
    field = CSV_SAMPLE_COUNT;
    60
    text = parts[i++];
    81
    text = parts[i++];
    61
    result.setGroupThreads(Integer.parseInt(text));
    61
    result.setGroupThreads(Integer.parseInt(text));
    82
    result.setSampleCount(Integer.parseInt(text));
    Differences
    Expression1Expression2Difference
    setGroupThreadssetSampleCountMETHOD_INVOCATION_NAME_MISMATCH
    Preondition Violations
    Expression result.setGroupThreads(Integer.parseInt(text)) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression result.setSampleCount(Integer.parseInt(text)) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression result.setGroupThreads(Integer.parseInt(text)) is a void method call, and thus it cannot be parameterized
    Expression result.setSampleCount(Integer.parseInt(text)) is a void method call, and thus it cannot be parameterized
    82
    result.setSampleCount(Integer.parseInt(text));
    62
    field = CSV_THREAD_COUNT2;
    62
    field = CSV_THREAD_COUNT2;
    83
    field = CSV_ERROR_COUNT;
    Differences
    Expression1Expression2Difference
    CSV_THREAD_COUNT2CSV_ERROR_COUNTVARIABLE_NAME_MISMATCH
    83
    field = CSV_ERROR_COUNT;
    63
    text = parts[i++];
    81
    text = parts[i++];
                                            
    84
    text = parts[i++];
    Preondition Violations
    Unmatched statement text=parts[i++]; cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted
    84
    text = parts[i++];
    64
    result.setAllThreads(Integer.parseInt(text));
    64
    result.setAllThreads(Integer.parseInt(text));
    85
    result.setErrorCount(Integer.parseInt(text));
    Differences
    Expression1Expression2Difference
    setAllThreadssetErrorCountMETHOD_INVOCATION_NAME_MISMATCH
    Preondition Violations
    Expression result.setAllThreads(Integer.parseInt(text)) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression result.setAllThreads(Integer.parseInt(text)) is a void method call, and thus it cannot be parameterized
    Expression result.setErrorCount(Integer.parseInt(text)) is a void method call, and thus it cannot be parameterized
    85
    result.setErrorCount(Integer.parseInt(text));
    Precondition Violations (8)
    Row Violation
    1Expression result.setGroupThreads(Integer.parseInt(text)) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    2Expression result.setSampleCount(Integer.parseInt(text)) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    3Expression result.setGroupThreads(Integer.parseInt(text)) is a void method call, and thus it cannot be parameterized
    4Expression result.setSampleCount(Integer.parseInt(text)) is a void method call, and thus it cannot be parameterized
    5Unmatched statement text=parts[i++]; cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted
    6Expression result.setAllThreads(Integer.parseInt(text)) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    7Expression result.setAllThreads(Integer.parseInt(text)) is a void method call, and thus it cannot be parameterized
    8Expression result.setErrorCount(Integer.parseInt(text)) is a void method call, and thus it cannot be parameterized