Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
11 | 2 | 1 | 0.989 | class_body_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 11 | 1026 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitEditor.java |
2 | 11 | 1045 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitEditor.java |
| ||||
/** * Returns the offset of the given Java element. * * @param element Java element * @return Offset of the given Java element */ private int getOffset(IJavaElement element) { if (element instanceof ISourceReference) { ISourceReference sr = (ISourceReference) element; try { ISourceRange srcRange = sr.getSourceRange(); if (srcRange != null) return srcRange.getOffset(); } catch (JavaModelException e) { } } return -1; } |
| ||||
/** * Returns the length of the given Java element. * * @param element Java element * @return Length of the given Java element */ private int getLength(IJavaElement element) { if (element instanceof ISourceReference) { ISourceReference sr = (ISourceReference) element; try { ISourceRange srcRange = sr.getSourceRange(); if (srcRange != null) return srcRange.getLength(); } catch (JavaModelException e) { } } return -1; } |
| |||
/** * Returns the offset of the given Java element. * * @param element Java element * @return Offset of the given Java element */ /** * Returns the length of the given Java element. * * @param element Java element * @return Length of the given Java element */ private int [[#variable5d183a40]](IJavaElement element) { if (element instanceof ISourceReference) { ISourceReference sr = (ISourceReference) element; try { ISourceRange srcRange = sr.getSourceRange(); if (srcRange != null) return srcRange. [[#variable5d183a40]](); } catch (JavaModelException e) { } } return -1; } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#5d183a40]] | getOffset |
1 | 2 | [[#5d183a40]] | getLength |