Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
9 | 2 | 4 | 0.976 | class_body_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 10 | 301 | plugins/org.eclipse.jdt.apt.core/src/org/eclipse/jdt/apt/core/internal/util/TypesUtil.java |
2 | 9 | 317 | plugins/org.eclipse.jdt.apt.core/src/org/eclipse/jdt/apt/core/internal/util/TypesUtil.java |
| ||||
/** * @return the binding correspond to the given type. * Return null if the type is an error marker. * @throws NonEclipseImplementationException */ private static ITypeBinding getTypeBinding(TypeMirror type) throws NonEclipseImplementationException { if (type == null) return null; if (type instanceof EclipseMirrorType) { return ((EclipseMirrorType) type).getTypeBinding(); } throw new NonEclipseImplementationException("only applicable to eclipse type system objects." + //$NON-NLS-1$ " Found " + type.getClass().getName()); //$NON-NLS-1$ } |
| ||||
/** * @return the binding correspond to the given type. * @throws NonEclipseImplementationException */ public static ITypeBinding getTypeBinding(TypeDeclaration type) throws NonEclipseImplementationException { if (type == null) return null; if (type instanceof EclipseMirrorObject) { return ((TypeDeclarationImpl) type).getTypeBinding(); } throw new NonEclipseImplementationException("only applicable to eclipse type system objects." + //$NON-NLS-1$ " Found " + type.getClass().getName()); //$NON-NLS-1$ } |
| |||
[[#variable4e958d40]]static ITypeBinding getTypeBinding( [[#variable4e958d20]] type) throws NonEclipseImplementationException { if (type == null) return null; if (type instanceof [[#variable4e958ba0]]) { return (( [[#variable4e958c40]]) type).getTypeBinding(); } throw new NonEclipseImplementationException("only applicable to eclipse type system objects." + //$NON-NLS-1$ " Found " + type.getClass().getName()); //$NON-NLS-1$ } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#4e958d40]] | /** * @return the binding correspond to the given type. * @throws NonEclipseImplementationException */ public |
1 | 2 | [[#4e958d40]] | /** * @return the binding correspond to the given type. * Return null if the type is an error marker. * @throws NonEclipseImplementationException */ private |
2 | 1 | [[#4e958d20]] | TypeDeclaration |
2 | 2 | [[#4e958d20]] | TypeMirror |
3 | 1 | [[#4e958ba0]] | EclipseMirrorObject |
3 | 2 | [[#4e958ba0]] | EclipseMirrorType |
4 | 1 | [[#4e958c40]] | TypeDeclarationImpl |
4 | 2 | [[#4e958c40]] | EclipseMirrorType |