CloneSet2432


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
11230.955switch_groups[3]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
111309
plugins/org.eclipse.jdt.core/search/org/eclipse/jdt/internal/core/search/matching/PackageReferenceLocator.java
211665
plugins/org.eclipse.jdt.core/search/org/eclipse/jdt/internal/core/search/matching/TypeReferenceLocator.java
Clone Instance
1
Line Count
11
Source Line
309
Source File
plugins/org.eclipse.jdt.core/search/org/eclipse/jdt/internal/core/search/matching/PackageReferenceLocator.java

                case Binding.FIELD:  // reading a field
                        if (qNameRef.tokens.length < (qNameRef.otherBindings == null ? 3:  qNameRef.otherBindings.length + 3))
                                return IMPOSSIBLE_MATCH; // must be at least p1.A.x
                        typeBinding = qNameRef.actualReceiverType;
                        break;
                case Binding.LOCAL:  // reading a local variable
                        return IMPOSSIBLE_MATCH; // no package match in it
                case Binding.TYPE:  //=============only type ==============
                        if (qNameRef.binding instanceof TypeBinding)
                                typeBinding = (TypeBinding) qNameRef.binding;
                        break;


Clone Instance
2
Line Count
11
Source Line
665
Source File
plugins/org.eclipse.jdt.core/search/org/eclipse/jdt/internal/core/search/matching/TypeReferenceLocator.java

                case Binding.FIELD:  // reading a field
                        if (qNameRef.tokens.length < (qNameRef.otherBindings == null ? 2:  qNameRef.otherBindings.length + 2))
                                return IMPOSSIBLE_MATCH; // must be at least A.x
                        typeBinding = nameRef.actualReceiverType;
                        break;
                case Binding.LOCAL:  // reading a local variable
                        return IMPOSSIBLE_MATCH; // no type match in it
                case Binding.TYPE:  //=============only type ==============
                        if (binding instanceof TypeBinding)
                                typeBinding = (TypeBinding) binding;
                        break;


Clone AbstractionParameter Count: 3Parameter Bindings

case Binding.FIELD: // reading a field
  if (qNameRef.tokens.length < (qNameRef.otherBindings == null ? [[#variableb812f940]]: qNameRef.otherBindings.length +  [[#variableb812f940]]))
    return IMPOSSIBLE_MATCH; // must be at least p1.A.x // must be at least A.x
  typeBinding = [[#variable51de1aa0]].actualReceiverType;
  break;
case Binding.LOCAL: // reading a local variable
  return IMPOSSIBLE_MATCH; // no package match in it // no type match in it
case Binding.TYPE: //=============only type ==============
  if ( [[#variableb2981c60]]instanceof TypeBinding)
    typeBinding = (TypeBinding)  [[#variableb2981c60]];
  break;
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#b812f940]]
3 
12[[#b812f940]]
2 
21[[#51de1aa0]]
qNameRef 
22[[#51de1aa0]]
nameRef 
31[[#b2981c60]]
qNameRef.binding 
32[[#b2981c60]]
binding