while (iterator.hasNext()) { Tick tick = (Tick) iterator.next(); Rectangle2D labelBounds = TextUtilities.getTextBounds( tick.getText(), g2, fm); if (labelBounds.getWidth() + insets.getTop() + insets.getBottom() > maxHeight) { maxHeight = labelBounds.getWidth() + insets.getTop() + insets.getBottom();
while (iterator.hasNext()) { Tick tick = (Tick) iterator.next(); Rectangle2D labelBounds = TextUtilities.getTextBounds( tick.getText(), g2, fm); if (labelBounds.getWidth() + insets.getLeft() + insets.getRight() > maxWidth) { maxWidth = labelBounds.getWidth() + insets.getLeft() + insets.getRight();
Clone fragments detected by clone detection tool
File path: /jfreechart-1.0.10/src/org/jfree/chart/axis/ValueAxis.java File path: /jfreechart-1.0.10/src/org/jfree/chart/axis/ValueAxis.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
while (iterator.hasNext()) {
1
while (iterator.hasNext()) {
2
                Tick tick = (Tick) iterator.next();
2
                Tick tick = (Tick) iterator.next();
3
                Rectangle2D labelBounds = TextUtilities.getTextBounds(
3
                Rectangle2D labelBounds = TextUtilities.getTextBounds(
4
                        tick.getText(), g2, fm);
4
                        tick.getText(), g2, fm);
5
                if (labelBounds.getWidth() + insets.getTop()
5
                if (labelBounds.getWidth() + insets.getLeft()
6
                        + insets.getBottom() > maxHeight) {
6
                        + insets.getRight() > maxWidth) {
7
                    maxHeight = labelBounds.getWidth()
7
                    maxWidth = labelBounds.getWidth()
8
                                + insets.getTop() + insets.getBottom();
8
                               + insets.getLeft() + insets.getRight();
9
                
9
                
Summary
Number of common nesting structure subtrees0
Number of refactorable cases0
Number of non-refactorable cases0
Time elapsed for finding largest common nesting structure subtrees (ms)0.0
Clones location
Number of node comparisons0