1693-2-8

Stroke stroke = getItemOutlineStroke(row, column); Paint paint = getItemOutlinePaint(row, column); if (stroke != null && paint != null) { g2.setStroke(stroke); g2.setPaint(paint); g2.draw(bar); }
Stroke stroke = getItemOutlineStroke(row, column); Paint paint = getItemOutlinePaint(row, column); if (stroke != null && paint != null) { g2.setStroke(stroke); g2.setPaint(paint); g2.draw(bar); }

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

1

    Stroke stroke = getItemOutlineStroke(row, column);↵

1

    Stroke stroke = getItemOutlineStroke(row, column);↵

2

                Paint paint = getItemOutlinePaint(row, column);↵

2

                Paint paint = getItemOutlinePaint(row, column);↵

3

                if (stroke != null && paint != null) {↵

3

                if (stroke != null && paint != null) {↵

4

                    g2.setStroke(stroke);↵

4

                    g2.setStroke(stroke);↵

5

                    g2.setPaint(paint);↵

5

                    g2.setPaint(paint);↵

6

                    g2.draw(bar);↵

6

                    g2.draw(bar);↵

7

                }

7

                }

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