if (this.horizontalAlignment != HorizontalAlignment.LEFT) { for (int i = 0; i < blocks.size(); i++) { //Block b = (Block) blocks.get(i); if (this.horizontalAlignment == HorizontalAlignment.CENTER) { //TODO: shift block right by half } else if (this.horizontalAlignment == HorizontalAlignment.RIGHT) {
if (this.verticalAlignment != VerticalAlignment.TOP) { for (int i = 0; i < blocks.size(); i++) { //Block b = (Block) blocks.get(i); if (this.verticalAlignment == VerticalAlignment.CENTER) { //TODO: shift block down by half } else if (this.verticalAlignment == VerticalAlignment.BOTTOM) {
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
if (this.horizontalAlignment != HorizontalAlignment.LEFT) {
1
if (this.verticalAlignment != VerticalAlignment.TOP) {
2
                for (int i = 0; i < blocks.size(); i++) {
2
                for (int i = 0; i < blocks.size(); i++) {
3
                    //Block b = (Block) blocks.get(i);
3
                    //Block b = (Block) blocks.get(i);
4
                    if (this.horizontalAlignment 
4
                    if (this.verticalAlignment 
5
                            == HorizontalAlignment.CENTER) {
5
== VerticalAlignment.CENTER) {
6
                        //TODO: shift block right by half
6
                        //TODO: shift block down by half
7
                    }
7
                    }
8
                    else if (this.horizontalAlignment 
8
                    else if (this.verticalAlignment 
9
                            == HorizontalAlignment.RIGHT) {
9
                            == VerticalAlignment.BOTTOM) {
10
                        
10
                        
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