for (int c = 0; c < ncols; c++, i++) {
if (i < ncomponents) {
Dimension d = parent.getComponent(i).getPreferredSize();
row_heights[r] = Math.max(row_heights[r], d.height);
col_widths[c] = Math.max(col_widths[c], d.width);
} else {
break;
}
}
total_height += row_heights[r];
for (int c = 0; c < ncols; c++, i++) {
if (i < ncomponents) {
Dimension d = parent.getComponent(i).getPreferredSize();
row_heights[r] = Math.max(row_heights[r], d.height);
col_widths[c] = Math.max(col_widths[c], d.width);
} else {
break;
}
}
total_height += row_heights[r];
Clone fragments detected by clone detection tool
File path: /jEdit-4.2/src/installer/VariableGridLayout.java
|
|
File path: /jEdit-4.2/src/org/gjt/sp/jedit/gui/VariableGridLayout.java
|
Method name:
|
|
Method name:
|
Number of AST nodes: 0
|
|
Number of AST nodes: 0
|
|
1 | for (int c = 0; c < ncols; c++, i++) {↵ | | 1 | for (int c = 0; c < ncols; c++, i++) {↵
|
2 | if (i < ncomponents) {↵ | | 2 | if (i < ncomponents) {↵
|
3 | Dimension d = parent.getComponent(i).getPreferredSize();↵ | | 3 | Dimension d = parent.getComponent(i).getPreferredSize();↵
|
4 | row_heights[r] = Math.max(row_heights[r], d.height);↵ | | 4 | row_heights[r] = Math.max(row_heights[r], d.height);↵
|
5 | col_widths[c] = Math.max(col_widths[c], d.width);↵ | | 5 | col_widths[c] = Math.max(col_widths[c], d.width);↵
|
6 | } else {↵ | | 6 | } else {↵
|
7 | break;↵ | | 7 | break;↵
|
8 | }↵ | | 8 | }↵
|
9 | }↵ | | 9 | }↵
|
10 | total_height += row_heights[r];↵ | | 10 | total_height += row_heights[r];↵
|
11 | | | 11 |
|
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 |