File path: /jEdit-4.2/src/org/gjt/sp/jedit/gui/GrabKeyDialog.java | File path: /jEdit-4.2/src/org/gjt/sp/jedit/gui/ErrorListDialog.java | |||
Method name: void init(KeyBinding, Vector, Buffer)
|
Method name: void ErrorListDialog(Frame, String, String, Vector, boolean)
|
|||
Number of AST nodes: 4 | Number of AST nodes: 4 | |||
1 | remove = new JButton(jEdit.getProperty("grab-key.remove"));↵ | 1 | pluginMgr = new JButton(jEdit.getProperty("↵ | |
2 | remove↵ | 2 | error-list.plugin-manager"));↵ | |
3 | .addActionListener(new ActionHandler());↵ | 3 | pluginMgr.addActionListener(new ActionHandler());↵ | |
4 | buttons.add(remove);↵ | 4 | buttons.add(pluginMgr);↵ | |
5 | buttons.add(Box.createHorizontalStrut(12)); | 5 | buttons.add(Box.createHorizontalStrut(6)); | |
See real code fragment | See real code fragment |
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 1 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.0 |
Clones location | Clones are in different classes having the same super class |
Number of node comparisons | 10 |
Number of mapped statements | 4 |
Number of unmapped statements in the first code fragment | 0 |
Number of unmapped statements in the second code fragment | 0 |
Time elapsed for statement mapping (ms) | 0.0 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
27 | remove = new JButton(jEdit.getProperty("grab-key.remove")); |
| 27 | pluginMgr = new JButton(jEdit.getProperty("error-list.plugin-manager")); | ||||||||||||||||
28 | remove.addActionListener(new ActionHandler()); |
| 28 | pluginMgr.addActionListener(new ActionHandler()); | ||||||||||||||||
29 | buttons.add(remove); |
| 29 | buttons.add(pluginMgr); | ||||||||||||||||
30 | buttons.add(Box.createHorizontalStrut(12)); |
| 30 | buttons.add(Box.createHorizontalStrut(6)); |
Row | Violation |
---|---|
1 | Expression remove is a field being modified, and thus it cannot be parameterized |
2 | Expression pluginMgr is a field being modified, and thus it cannot be parameterized |
3 | Type org.gjt.sp.jedit.gui.GrabKeyDialog.ActionHandler of variable new ActionHandler() does not match with type org.gjt.sp.jedit.gui.ErrorListDialog.ActionHandler of variable new ActionHandler() |
4 | Expression remove cannot be parameterized, because it has dependencies to/from statements that will be extracted |
5 | Expression pluginMgr cannot be parameterized, because it has dependencies to/from statements that will be extracted |
6 | Expression remove cannot be parameterized, because it has dependencies to/from statements that will be extracted |
7 | Expression pluginMgr cannot be parameterized, because it has dependencies to/from statements that will be extracted |