defaultDirectory.setSelectedIndex(0);
else if("home".equals(defaultDir))
defaultDirectory.setSelectedIndex(1);
else if("last".equals(defaultDir))
defaultDirectory.setSelectedIndex(2);
if("\n".equals(lineSep))
lineSeparator.setSelectedIndex(0);
else if("\r\n".equals(lineSep))
lineSeparator.setSelectedIndex(1);
else if("\r".equals(lineSep))
lineSeparator.setSelectedIndex(2);
Clone fragments detected by clone detection tool
File path: /jEdit-4.2/src/org/gjt/sp/jedit/options/BrowserOptionPane.java
|
|
File path: /jEdit-4.2/src/org/gjt/sp/jedit/options/GeneralOptionPane.java
|
Method name: void _init()
|
|
Method name: void _init()
|
Number of AST nodes: 3
|
|
Number of AST nodes: 6
|
|
1 | defaultDirec↵ | | 1 | if("\n".equals(lineSep))↵
|
2 | tory.setSelectedIndex(0);↵ | | 2 | lineSeparator.setSelectedIndex(0);↵
|
3 | else if("home".equals(defaultDir))↵ | | 3 | else if("\r\n".equals(↵
|
4 | defaultDirec↵ | | 4 | lineSep))↵
|
5 | tory.setSelectedIndex(1);↵ | | 5 | lineSeparator.setSelectedIndex(1);↵
|
6 | else if("last".equals(defaultDir))↵ | | 6 | else if("\r".equals(↵
|
7 | defaultDirec↵ | | 7 | lineSep))↵
|
8 | tory.setSelectedIndex(2); | | 8 | lineSeparator.setSelectedIndex(2);
|
See real code fragment |
|
See real code fragment |
Summary
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 | 0 |
-
{Non-refactorable}
Mapping Summary
Number of mapped statements | 0 |
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 | Unknown type |
Mapped Statements
ID |
Statement |
|
ID |
Statement |
Precondition Violations (0)
Row |
Violation |