if (parentBounds.width <= (dim.width + fudgeFactor)) { dim.width = parentBounds.width - fudgeFactor; pt.x = fudgeFactor / 2; newComp.setSize(dim); } else { if ((pt.x + dim.width + fudgeFactor) > (parentBounds.width)) { pt.x -= (pt.x + dim.width + fudgeFactor) - parentBounds.width;
if (parentBounds.width <= (dim.width + fudgeFactor)) { dim.width = parentBounds.width - fudgeFactor; pt.x = fudgeFactor / 2; rdif.setSize(dim); } else { if ((pt.x + dim.width + fudgeFactor) > (parentBounds.width)) { pt.x -= (pt.x + dim.width + fudgeFactor) - parentBounds.width;
Clone fragments detected by clone detection tool
File path: /sql12/fw/src/net/sourceforge/squirrel_sql/fw/datasetviewer/CellDataPopup.java File path: /sql12/fw/src/net/sourceforge/squirrel_sql/fw/datasetviewer/DataSetViewerEditableTablePanel.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
if (parentBounds.width <= (dim.width + fudgeFactor))
1
if (parentBounds.width <= (dim.width + fudgeFactor))
2
		{
2
		{
3
			dim.width = parentBounds.width - fudgeFactor;
3
			dim.width = parentBounds.width - fudgeFactor;
4
			pt.x = fudgeFactor / 2;
4
			pt.x = fudgeFactor / 2;
5
			newComp.setSize(dim);
5
			rdif.setSize(dim);
6
		}
6
		}
7
		else
7
		else 
8
		{
8
		{
9
			if ((pt.x + dim.width + fudgeFactor) > (parentBounds.width))
9
			if ((pt.x + dim.width + fudgeFactor) > (parentBounds.width))
10
			{
10
			{
11
				pt.x -= (pt.x + dim.width + fudgeFactor) - parentBounds.width;
11
				pt.x -= (pt.x + dim.width + fudgeFactor) - parentBounds.width;
12
			
12
			
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