if (cnax != null) { if (xcycleBound == x[0]) { cnax.setBoundMappedToLastCycle(x[1] <= xcycleBound); } if (xcycleBound == x[1]) { cnax.setBoundMappedToLastCycle(x[0] <= xcycleBound); } }
if (cnax != null) { if (xcycleBound == x[2]) { cnax.setBoundMappedToLastCycle(x[3] <= xcycleBound); } if (xcycleBound == x[3]) { cnax.setBoundMappedToLastCycle(x[2] <= xcycleBound); } }
Clone fragments detected by clone detection tool
File path: /jfreechart-1.0.10/src/org/jfree/chart/renderer/xy/CyclicXYItemRenderer.java File path: /jfreechart-1.0.10/src/org/jfree/chart/renderer/xy/CyclicXYItemRenderer.java
Method name: void drawItem(Graphics2D, XYItemRendererState, Rectangle2D, PlotRenderingInfo, XYPlot, ValueAxis, ValueAxis, XYDataset, int, int, CrosshairState, int) Method name: void drawItem(Graphics2D, XYItemRendererState, Rectangle2D, PlotRenderingInfo, XYPlot, ValueAxis, ValueAxis, XYDataset, int, int, CrosshairState, int)
Number of AST nodes: 5 Number of AST nodes: 5
1
if (cnax != null) {
1
if (cnax != null) {
2
            if (xcycleBound == x[0]) {
2
                if (xcycleBound == x[2]) {
3
                cnax.setBoundMappedToLastCycle(x[1] <= xcycleBound);
3
                    cnax.setBoundMappedToLastCycle(x[3] <= xcycleBound);
4
            }
4
                }
5
            if (xcycleBound == x[1]) {
5
                if (xcycleBound == x[3]) {
6
                cnax.setBoundMappedToLastCycle(x[0] <= xcycleBound);
6
                    cnax.setBoundMappedToLastCycle(x[2] <= xcycleBound);
7
            }
7
            
8
    }
8
        }
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.3
Clones locationClones are in the same method
Number of node comparisons14
  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)5.5
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    73
    if (cnax != null)
    96
    if (cnax != null)
    74
    if (xcycleBound == x[0])
    74
    if (xcycleBound == x[0])
    97
    if (xcycleBound == x[2])
    Differences
    Expression1Expression2Difference
    02LITERAL_VALUE_MISMATCH
    97
    if (xcycleBound == x[2])
    75
    cnax.setBoundMappedToLastCycle(x[1] <= xcycleBound);
    75
    cnax.setBoundMappedToLastCycle(x[1] <= xcycleBound);
    98
    cnax.setBoundMappedToLastCycle(x[3] <= xcycleBound);
    Differences
    Expression1Expression2Difference
    13LITERAL_VALUE_MISMATCH
    98
    cnax.setBoundMappedToLastCycle(x[3] <= xcycleBound);
    76
    if (xcycleBound == x[1])
    76
    if (xcycleBound == x[1])
    99
    if (xcycleBound == x[3])
    Differences
    Expression1Expression2Difference
    13LITERAL_VALUE_MISMATCH
    99
    if (xcycleBound == x[3])
    77
    cnax.setBoundMappedToLastCycle(x[0] <= xcycleBound);
    77
    cnax.setBoundMappedToLastCycle(x[0] <= xcycleBound);
    100
    cnax.setBoundMappedToLastCycle(x[2] <= xcycleBound);
    Differences
    Expression1Expression2Difference
    02LITERAL_VALUE_MISMATCH
    100
    cnax.setBoundMappedToLastCycle(x[2] <= xcycleBound);
    Precondition Violations (0)
    Row Violation