itemsInColumn.clear(); x = x + maxWidth + this.horizontalGap; y = 0.0; maxWidth = size.width; block.setBounds( new Rectangle2D.Double( x, y, size.width, Math.min(size.height, height) ) ); y = size.height + this.verticalGap; itemsInColumn.add(block);
itemsInRow.clear(); x = 0.0; y = y + maxHeight + this.verticalGap; maxHeight = size.height; block.setBounds( new Rectangle2D.Double( x, y, Math.min(size.width, width), size.height ) ); x = size.width + this.horizontalGap; itemsInRow.add(block);
Clone fragments detected by clone detection tool
File path: /jfreechart-1.0.10/src/org/jfree/chart/block/ColumnArrangement.java File path: /jfreechart-1.0.10/src/org/jfree/chart/block/FlowArrangement.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
itemsInColumn.clear();
1
itemsInRow.clear();
2
                    x = x + maxWidth + this.horizontalGap;
2
                    x = 
3
                    y = 0.0
3
0.0;
4
;
4
                    y = y + maxHeight + this.verticalGap;
5
                    maxWidth = size.width;
5
                    maxHeight = size.height;
6
                    block.setBounds(
6
                    block.setBounds(
7
                        new Rectangle2D.Double(
7
                        new Rectangle2D.Double(
8
                            x, y, size.width, Math.min(size.height, height)
8
                            x, y, Math.min(size.width, width), size.height
9
                        )
9
                        )
10
                    );
10
                    );
11
                    y = size.height + this.verticalGap;
11
                    x = size.width + this.horizontalGap;
12
                    itemsInColumn.add(block);
12
                    itemsInRow.add(block);
13
                
13
                
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