File path: /jEdit-4.2/src/org/gjt/sp/jedit/help/HelpTOCPanel.java | File path: /jEdit-4.2/src/org/gjt/sp/jedit/options/DockingOptionPane.java | |||
Method name: int compare(Object, Object)
|
Method name: int compare(Object, Object)
|
|||
Number of AST nodes: 3 | Number of AST nodes: 3 | |||
1 | EditPlugin p1 = (EditPlugin)o1;↵ | 1 | E↵ | |
2 | EditPlugin p2 = (EditPlugin)o↵ | 2 | ntry e1 = (Entry)obj1;↵ | |
3 | 2;↵ | 3 | Entry e2 = (Entry)obj2;↵ | |
4 | return MiscUtilities.compareStrings(↵ | 4 | return MiscUtilities.compareStrings(↵ | |
5 | jEdit.getProperty("plugin." + p1.getClassName() + ".name"),↵ | 5 | ↵ | |
6 | jEdit.getProperty("plugin." + p2.getClassName() + ".name"),↵ | |||
7 | true); | 6 | e1.title,e2.title,true); | |
See real code fragment | See real code fragment |
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 1 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.0 |
Clones location | Clones are in different classes |
Number of node comparisons | 9 |
Number of mapped statements | 1 |
Number of unmapped statements in the first code fragment | 2 |
Number of unmapped statements in the second code fragment | 2 |
Time elapsed for statement mapping (ms) | 0.0 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | Entry e1 = (Entry)obj1; | |||||||||||||||
1 | EditPlugin p1 = (EditPlugin)o1; | | |||||||||||||||
| 2 | Entry e2 = (Entry)obj2; | |||||||||||||||
2 | EditPlugin p2 = (EditPlugin)o2; | | |||||||||||||||
3 | return MiscUtilities.compareStrings(jEdit.getProperty("plugin." + p1.getClassName() + ".name"), jEdit.getProperty("plugin." + p2.getClassName() + ".name"), true); |
| 3 | return MiscUtilities.compareStrings(e1.title, e2.title, true); |
Row | Violation |
---|