for(int i = 0; i < toolbars.size(); i++) { if(toolbar == ((Entry)toolbars.get(i)).toolbar) { group.remove(toolbar); toolbars.remove(i); return; } }
for(int i = 0; i < abbrevsModel.getRowCount(); i++) { if(abbrevsModel.getValueAt(i,0).equals(abbrev)) { abbrevsModel.remove(i); break; } } abbrevsModel.add(abbrev,expansion); updateEnabled();
Clone fragments detected by clone detection tool
File path: /jEdit-4.2/src/org/gjt/sp/jedit/gui/ToolBarManager.java File path: /jEdit-4.2/src/org/gjt/sp/jedit/options/AbbrevsOptionPane.java
Method name: void removeToolBar(Container, ArrayList, Component) Method name: void add(AbbrevsModel, String, String)
Number of AST nodes: 5 Number of AST nodes: 6
1
for(int i = 0; i < toolbars.size(); i++)
1
for(int i = 0; i < 
2
		{
3
			if(toolbar == ((Entry)toolbars.get(i)).toolbar)
4
			{
5
				group
2
abbrevsModel.getRowCount(); i++)
3
		{
4
			if(abbrevsModel.getValueAt(i,0).equals(abbrev))
5
			{
6
.remove(toolbar);
6
				abbrevsModel.remove(
7
				toolbars.remove(i
7
i);
8
				break;
9
			}
10
		}
8
);
11
		abbrevsModel.add(abbrev,expansion);
9
				return;
12
		
10
			}
11
		}
13
updateEnabled();
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.1
Clones locationClones are in different classes
Number of node comparisons1