Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
3 | 2 | 2 | 0.979 | statement_sequence[2] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 3 | 140 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/search/JavaSearchEditorOpener.java |
2 | 3 | 207 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/search/JavaSearchResult.java |
| ||||
IClassFile cf = (IClassFile) jElement.getAncestor(IJavaElement.CLASS_FILE); if (cf != null) return (IFile) cf.getCorrespondingResource(); |
| ||||
IClassFile cf = (IClassFile) javaElement.getAncestor(IJavaElement.CLASS_FILE); if (cf != null) return (IFile) cf.getResource(); |
| |||
IClassFile cf = (IClassFile) [[#variable5a52cfe0]].getAncestor(IJavaElement.CLASS_FILE); if (cf != null) return (IFile) cf. [[#variable5a52c940]](); |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#5a52cfe0]] | javaElement |
1 | 2 | [[#5a52cfe0]] | jElement |
2 | 1 | [[#5a52c940]] | getResource |
2 | 2 | [[#5a52c940]] | getCorrespondingResource |