if (data != null && this.title != null && this.xAxisLabels != null && this.xAxisTitle != null && this.yAxisLabel != null && this.yAxisTitle != null) { drawSample(this.title,this.maxLength,this.xAxisLabels,this.xAxisTitle, this.yAxisTitle,this.data,this.width,this.height,g); }
this.paint_counter = -1; if (data != null && this.title != null && this.xAxisLabels != null && this.xAxisTitle != null && this.yAxisLabel != null && this.yAxisTitle != null) { drawSample(this.title,this.xAxisLabels,this.xAxisTitle, this.yAxisTitle,this.data,this.width,this.height,g); }
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/visualizers/AxisGraph.java File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/visualizers/LineGraph.java
Method name: void paintComponent(Graphics) Method name: void paintComponent(Graphics)
Number of AST nodes: 2 Number of AST nodes: 3
1
this.paint_counter = -1;
1
if (data != null && this.title != null && this.xAxisLabels != null &&
2
        if (data != null && this.title != null && this.xAxisLabels != null &&
2
                this.xAxisTitle != null && this.yAxisLabel != null &&
3
                this.xAxisTitle != null && this.yAxisLabel != null &&
3
                this.yAxisTitle != null) {
4
                this.yAxisTitle != null) {
4
            drawSample(this.title,this.maxLength,this.xAxisLabels,this.xAxisTitle,
5
            drawSample(this.title,this.xAxisLabels,this.xAxisTitle,
5
                this.yAxisTitle,this.data,this.width,this.height,g);
6
                    this.yAxisTitle,this.data,this.width,this.height,g);
6
        }
7
        }
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.7
Clones locationClones are in different classes having the same super class
Number of node comparisons4
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements2
    Number of unmapped statements in the first code fragment0
    Number of unmapped statements in the second code fragment1
    Time elapsed for statement mapping (ms)1.4
    Clone typeType 3
    Mapped Statements
    ID Statement ID Statement
                                                      
    1
    this.paint_counter = -1;
    1
    if (data != null && this.title != null && this.xAxisLabels != null && this.xAxisTitle != null && this.yAxisLabel != null && this.yAxisTitle != null)
    1
    if (data != null && this.title != null && this.xAxisLabels != null && this.xAxisTitle != null && this.yAxisLabel != null && this.yAxisTitle != null)
    2
    if (data != null && this.title != null && this.xAxisLabels != null && this.xAxisTitle != null && this.yAxisLabel != null && this.yAxisTitle != null)
    Differences
    Expression1Expression2Difference
    java.lang.Stringjava.lang.String[]VARIABLE_TYPE_MISMATCH
    Preondition Violations
    Type java.lang.String of variable this.yAxisLabel does not match with type java.lang.String[] of variable this.yAxisLabel
    • Make classes java.lang.String and java.lang.String[] extend a common superclass
    2
    if (data != null && this.title != null && this.xAxisLabels != null && this.xAxisTitle != null && this.yAxisLabel != null && this.yAxisTitle != null)
    2
    drawSample(this.title, this.maxLength, this.xAxisLabels, this.xAxisTitle, this.yAxisTitle, this.data, this.width, this.height, g);
    2
    drawSample(this.title, this.maxLength, this.xAxisLabels, this.xAxisTitle, this.yAxisTitle, this.data, this.width, this.height, g);
    3
    drawSample(this.title, this.xAxisLabels, this.xAxisTitle, this.yAxisTitle, this.data, this.width, this.height, g);
    Differences
    Expression1Expression2Difference
    drawSample(this.title,this.maxLength,this.xAxisLabels,this.xAxisTitle,this.yAxisTitle,this.data,this.width,this.height,g)drawSample(this.title,this.xAxisLabels,this.xAxisTitle,this.yAxisTitle,this.data,this.width,this.height,g)ARGUMENT_NUMBER_MISMATCH
    Preondition Violations
    Expression drawSample(this.title,this.maxLength,this.xAxisLabels,this.xAxisTitle,this.yAxisTitle,this.data,this.width,this.height,g) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    • Inline private method drawSample
    Expression drawSample(this.title,this.xAxisLabels,this.xAxisTitle,this.yAxisTitle,this.data,this.width,this.height,g) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    • Inline private method drawSample
    Expression drawSample(this.title,this.maxLength,this.xAxisLabels,this.xAxisTitle,this.yAxisTitle,this.data,this.width,this.height,g) is a void method call, and thus it cannot be parameterized
    Expression drawSample(this.title,this.xAxisLabels,this.xAxisTitle,this.yAxisTitle,this.data,this.width,this.height,g) is a void method call, and thus it cannot be parameterized
    3
    drawSample(this.title, this.xAxisLabels, this.xAxisTitle, this.yAxisTitle, this.data, this.width, this.height, g);
    Precondition Violations (5)
    Row Violation
    1Type java.lang.String of variable this.yAxisLabel does not match with type java.lang.String[] of variable this.yAxisLabel
    2Expression drawSample(this.title,this.maxLength,this.xAxisLabels,this.xAxisTitle,this.yAxisTitle,this.data,this.width,this.height,g) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    3Expression drawSample(this.title,this.xAxisLabels,this.xAxisTitle,this.yAxisTitle,this.data,this.width,this.height,g) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    4Expression drawSample(this.title,this.maxLength,this.xAxisLabels,this.xAxisTitle,this.yAxisTitle,this.data,this.width,this.height,g) is a void method call, and thus it cannot be parameterized
    5Expression drawSample(this.title,this.xAxisLabels,this.xAxisTitle,this.yAxisTitle,this.data,this.width,this.height,g) is a void method call, and thus it cannot be parameterized