Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
6 | 2 | 2 | 0.970 | class_body_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 6 | 299 | plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/JavaElement.java |
2 | 6 | 310 | plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/JavaElement.java |
| ||||
/** * @see IJavaElement */ public IJavaModel getJavaModel() { IJavaElement current = this ; do { if (current instanceof IJavaModel) return (IJavaModel) current; } while ( (current = current.getParent()) != null); return null; } |
| ||||
/** * @see IJavaElement */ public IJavaProject getJavaProject() { IJavaElement current = this ; do { if (current instanceof IJavaProject) return (IJavaProject) current; } while ( (current = current.getParent()) != null); return null; } |
| |||
/** * @see IJavaElement */ public [[#variablea52b7160]] [[#variablea52b7100]]() { IJavaElement current = this ; do { if (current instanceof [[#variablea52b7160]]) return ( [[#variablea52b7160]]) current; } while ((current = current.getParent()) != null); return null; } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#a52b7160]] | IJavaModel |
1 | 2 | [[#a52b7160]] | IJavaProject |
2 | 1 | [[#a52b7100]] | getJavaModel |
2 | 2 | [[#a52b7100]] | getJavaProject |