File path: /jEdit-4.2/src/org/gjt/sp/jedit/gui/AddAbbrevDialog.java | File path: /jEdit-4.2/src/org/gjt/sp/jedit/gui/EditAbbrevDialog.java | |||
Method name: void AddAbbrevDialog(View, String)
|
Method name: void init(String, String, Map)
|
|||
Number of AST nodes: 6 | Number of AST nodes: 6 | |||
1 | editor.setBorder(new EmptyBorder(6,0,12,0));↵ | 1 | editor.setBorder(new EmptyBorder(0,0,12,0));↵ | |
2 | content.add(BorderLayout.CENTER,editor);↵ | 2 | content.add(BorderLayout.CENTER,editor);↵ | |
3 | Box box = new Box(BoxLayout.X_AXIS);↵ | 3 | Box box = new Box(BoxLayout.X_AXIS);↵ | |
4 | box.add(Box.createGlue());↵ | 4 | box.add(Box.createGlue());↵ | |
5 | global = new JButton(jEdit.getProperty("add-abbrev.global"));↵ | 5 | ok = new JButton(jEdit.getProperty("common.ok"));↵ | |
6 | global.addActionListener(new ActionHandler()); | 6 | ok.addActionListener(new ActionHandler()); | |
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 | 16 |
Number of mapped statements | 6 |
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 | |||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
8 | editor.setBorder(new EmptyBorder(6, 0, 12, 0)); |
| 9 | editor.setBorder(new EmptyBorder(0, 0, 12, 0)); | ||||||||||||||||
9 | content.add(BorderLayout.CENTER, editor); | 10 | content.add(BorderLayout.CENTER, editor); | |||||||||||||||||
10 | Box box = new Box(BoxLayout.X_AXIS); | 11 | Box box = new Box(BoxLayout.X_AXIS); | |||||||||||||||||
11 | box.add(Box.createGlue()); | 12 | box.add(Box.createGlue()); | |||||||||||||||||
12 | global = new JButton(jEdit.getProperty("add-abbrev.global")); |
| 13 | ok = new JButton(jEdit.getProperty("common.ok")); | ||||||||||||||||
13 | global.addActionListener(new ActionHandler()); |
| 14 | ok.addActionListener(new ActionHandler()); |
Row | Violation |
---|---|
1 | Expression global is a field being modified, and thus it cannot be parameterized |
2 | Expression ok is a field being modified, and thus it cannot be parameterized |
3 | Type org.gjt.sp.jedit.gui.AddAbbrevDialog.ActionHandler of variable new ActionHandler() does not match with type org.gjt.sp.jedit.gui.EditAbbrevDialog.ActionHandler of variable new ActionHandler() |
4 | Expression global cannot be parameterized, because it has dependencies to/from statements that will be extracted |
5 | Expression ok cannot be parameterized, because it has dependencies to/from statements that will be extracted |