CloneSet4051


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
9240.976class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
110301
plugins/org.eclipse.jdt.apt.core/src/org/eclipse/jdt/apt/core/internal/util/TypesUtil.java
29317
plugins/org.eclipse.jdt.apt.core/src/org/eclipse/jdt/apt/core/internal/util/TypesUtil.java
Clone Instance
1
Line Count
10
Source Line
301
Source File
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$
    }


Clone Instance
2
Line Count
9
Source Line
317
Source File
plugins/org.eclipse.jdt.apt.core/src/org/eclipse/jdt/apt/core/internal/util/TypesUtil.java

    /**
     * @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$
    }


Clone AbstractionParameter Count: 4Parameter Bindings

 [[#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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#4e958d40]]
/**
 * @return the binding correspond to the given type.
 * @throws NonEclipseImplementationException
 */
public 
12[[#4e958d40]]
/**
 * @return the binding correspond to the given type.
 *         Return null if the type is an error marker.
 * @throws NonEclipseImplementationException
 */
private 
21[[#4e958d20]]
TypeDeclaration 
22[[#4e958d20]]
TypeMirror 
31[[#4e958ba0]]
EclipseMirrorObject 
32[[#4e958ba0]]
EclipseMirrorType 
41[[#4e958c40]]
TypeDeclarationImpl 
42[[#4e958c40]]
EclipseMirrorType