CloneSet1557


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
13220.991statement_sequence[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
113327
plugins/org.eclipse.jdt.core/search/org/eclipse/jdt/internal/core/search/matching/PackageReferenceLocator.java
213682
plugins/org.eclipse.jdt.core/search/org/eclipse/jdt/internal/core/search/matching/TypeReferenceLocator.java
Clone Instance
1
Line Count
13
Source Line
327
Source File
plugins/org.eclipse.jdt.core/search/org/eclipse/jdt/internal/core/search/matching/PackageReferenceLocator.java

                        if (binding instanceof ProblemReferenceBinding) {
                                typeBinding = (TypeBinding) binding;
                        }
                        else   if (binding instanceof ProblemFieldBinding) {
                                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;
                               }
                               else
                               if (binding instanceof ProblemBinding) {
                                ProblemBinding pbBinding = (ProblemBinding) binding;
                                if (CharOperation.occurencesOf('.', pbBinding.name) <= 0) // index of last bound token is one before the pb token
                                        return INACCURATE_MATCH;
                                typeBinding = pbBinding.searchType;
                               }
                        break;


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

                        if (binding instanceof ProblemReferenceBinding) {
                                typeBinding = (TypeBinding) binding;
                        }
                        else   if (binding instanceof ProblemFieldBinding) {
                                if (qNameRef.tokens.length < (qNameRef.otherBindings == null ? 2:  qNameRef.otherBindings.length + 2))
                                        return IMPOSSIBLE_MATCH; // must be at least A.x
                                typeBinding = nameRef.actualReceiverType;
                               }
                               else
                               if (binding instanceof ProblemBinding) {
                                ProblemBinding pbBinding = (ProblemBinding) binding;
                                if (CharOperation.occurencesOf('.', pbBinding.name) <= 0) // index of last bound token is one before the pb token
                                        return INACCURATE_MATCH;
                                typeBinding = pbBinding.searchType;
                               }
                        break;


Clone AbstractionParameter Count: 2Parameter Bindings

if (binding instanceof ProblemReferenceBinding) {
  typeBinding = (TypeBinding) binding;
}
else
  if (binding instanceof ProblemFieldBinding) {
    if (qNameRef.tokens.length < (qNameRef.otherBindings == null ? [[#variable588f22a0]]: qNameRef.otherBindings.length +  [[#variable588f22a0]]))
      return IMPOSSIBLE_MATCH; // must be at least p1.A.x // must be at least A.x
    typeBinding = [[#variable588f2b00]].actualReceiverType;
  }
  else
    if (binding instanceof ProblemBinding) {
      ProblemBinding pbBinding = (ProblemBinding) binding;
      if (CharOperation.occurencesOf('.', pbBinding.name) <= 0) // index of last bound token is one before the pb token
        return INACCURATE_MATCH;
      typeBinding = pbBinding.searchType;
    }
break;
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#588f22a0]]
3 
12[[#588f22a0]]
2 
21[[#588f2b00]]
qNameRef 
22[[#588f2b00]]
nameRef