class AddAction extends AbstractAction { private AddAction() { super("Add"); putValue(MNEMONIC_KEY, new Integer(KeyEvent.VK_A)); putValue(ACCELERATOR_KEY, new Integer(KeyEvent.VK_A)); } public void actionPerformed(ActionEvent event) { _userAction = ADD; dispose(); } }
class ChangeAllAction extends AbstractAction { private ChangeAllAction() { super("Change All"); putValue(MNEMONIC_KEY, new Integer(KeyEvent.VK_L)); putValue(ACCELERATOR_KEY, new Integer(KeyEvent.VK_L)); } public void actionPerformed(ActionEvent event) { _userAction = CHANGE_ALL; dispose(); } }
Clone fragments detected by clone detection tool
File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/spellcheck/cswilly/ValidationDialog.java File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/spellcheck/cswilly/ValidationDialog.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
class AddAction extends AbstractAction {
1
class ChangeAllAction extends AbstractAction {
2
		private AddAction() {
2
		private ChangeAllAction() {
3
			super("Add");
3
			super("Change All");
4
			putValue(MNEMONIC_KEY, new Integer(KeyEvent.VK_A));
4
			putValue(MNEMONIC_KEY, new Integer(KeyEvent.VK_L));
5
			putValue(ACCELERATOR_KEY, new Integer(KeyEvent.VK_A));
5
			putValue(ACCELERATOR_KEY, new Integer(KeyEvent.VK_L));
6
		}
6
		}
7
		public void actionPerformed(ActionEvent event) {
7
		public void actionPerformed(ActionEvent event) {
8
			_userAction = ADD;
8
			_userAction = CHANGE_ALL;
9
			dispose();
9
			dispose();
10
		}
10
		}
11
	}
11
	}
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