1507-1-2

float xstart = (float) valueToJava2D(Math.max(first, axisMin), dataArea, edge); if (bb.getWidth() < (dataArea.getMaxX() - xstart)) { x = ((float) dataArea.getMaxX() + xstart) / 2.0f; } else { label = null; }
float xlast = (float) valueToJava2D(Math.min(last, axisMax), dataArea, edge); if (bb.getWidth() < (xlast - dataArea.getX())) { x = (xlast + (float) dataArea.getX()) / 2.0f; } else { label = null; }

Clone fragments detected by clone detection tool
File path: /jfreechart-1.0.10/src/org/jfree/chart/axis/PeriodAxis.java |  | File path: /jfreechart-1.0.10/src/org/jfree/chart/axis/PeriodAxis.java
Method name: `` |  | Method name: ``
Number of AST nodes: 0 |  | Number of AST nodes: 0

1

    float xstart = (float) valueToJava2D(Math.max(first, ↵

1

    float xlast = (float) valueToJava2D(Math.min(last, ↵

2

                                axisMin), dataArea, edge);↵

2

                                axisMax), dataArea, edge);↵

3

                        if (bb.getWidth() < (dataArea.getMaxX() - xstart)) {↵

3

                        if (bb.getWidth() < (xlast - dataArea.getX())) {↵

4

                            x = ((float) dataArea.getMaxX() + xstart) / 2.0f;   ↵

4

                            x = (xlast + (float) dataArea.getX()) / 2.0f;   ↵

5

                        }↵

5

                        }↵

6

                        else {↵

6

                        else {↵

7

                            label = null;↵

7

                            label = null;↵

8

                        }

8

                        }

See real code fragment |  | See real code fragment

Summary
Number of common nesting structure subtrees | 0
Number of refactorable cases | 0
Number of non-refactorable cases | 0
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.0
Clones location |
Number of node comparisons | 0