if(e.position.equals(LEFT)) e.container = left; else if(e.position.equals(BOTTOM)) e.container = bottom; else if(e.position.equals(RIGHT)) e.container = right; else { Log.log(Log.WARNING,this, "Unknown position: " + e.position); }
if(position.equals(DockableWindowManager.TOP) || position.equals(DockableWindowManager.BOTTOM)) rotation = RotatedTextIcon.NONE; else if(position.equals(DockableWindowManager.LEFT)) rotation = RotatedTextIcon.CCW; else if(position.equals(DockableWindowManager.RIGHT)) rotation = RotatedTextIcon.CW; else throw new InternalError("Invalid position: " + position);
Clone fragments detected by clone detection tool
File path: /jEdit-4.2/src/org/gjt/sp/jedit/gui/DockableWindowManager.java File path: /jEdit-4.2/src/org/gjt/sp/jedit/gui/PanelWindowContainer.java
Method name: void addEntry(Factory) Method name: void register(DockableWindowManager.Entry)
Number of AST nodes: 7 Number of AST nodes: 7
1
if(e.position.equals(LEFT))
1
if(position.equals(
2
				e.container = left
2
DockableWindowManager.TOP)
3
			|| position.equals(DockableWindowManager.BOTTOM))
3
;
4
			rotation = RotatedTextIcon.NONE;
4
			else if(e.position.equals(BOTTOM))
5
		else if(position.equals(
5
				e.container
6
DockableWindowManager.LEFT))
6
 = bottom;
7
			rotation = RotatedTextIcon.CCW;
7
			else if(e.position.equals(RIGHT))
8
		else if(position.equals(DockableWindowManager.RIGHT))
8
				e.container = right;
9
			rotation = RotatedTextIcon.CW;
9
			else
10
		else
10
			{
11
			
11
				Log.log(Log.WARNING,this,
12
					"Unknown position: "
12
throw new InternalError("Invalid position: "
13
					+ e.position);
13
 + position);
14
			}
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)1.0
Clones locationClones are in different classes
Number of node comparisons9