CloneSet1474


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
9220.958executable_statement
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
19263
plugins/org.eclipse.jdt.core/search/org/eclipse/jdt/internal/core/search/matching/MethodLocator.java
29286
plugins/org.eclipse.jdt.core/search/org/eclipse/jdt/internal/core/search/matching/MethodLocator.java
Clone Instance
1
Line Count
9
Source Line
263
Source File
plugins/org.eclipse.jdt.core/search/org/eclipse/jdt/internal/core/search/matching/MethodLocator.java

                                                      {
                        MethodBinding[] methods = superClass.getMethods(this.pattern.selector);
                        int length = methods.length;
                        for (int i = 0; i < length; i++) {
                                if (methods[i].areParametersEqual(method)) {
                                        if (matchMethod == null) {
                                                if (methodParametersEqualsPattern(methods[i].original())) return true;
                                        }
                                        else   {
                                                if (methods[i].original().areParametersEqual(matchMethod)) return true;
                                        }
                                }
                        }
                                                      }


Clone Instance
2
Line Count
9
Source Line
286
Source File
plugins/org.eclipse.jdt.core/search/org/eclipse/jdt/internal/core/search/matching/MethodLocator.java

                                                         {
                        MethodBinding[] methods = interfaces[i].getMethods(this.pattern.selector);
                        int length = methods.length;
                        for (int j = 0; j < length; j++) {
                                if (methods[j].areParametersEqual(method)) {
                                        if (matchMethod == null) {
                                                if (methodParametersEqualsPattern(methods[j].original())) return true;
                                        }
                                        else   {
                                                if (methods[j].original().areParametersEqual(matchMethod)) return true;
                                        }
                                }
                        }
                                                         }


Clone AbstractionParameter Count: 2Parameter Bindings

{
  MethodBinding[] methods = [[#variable7d139240]].getMethods(this.pattern.selector);
  int length = methods.length;
  for (int  [[#variable7d1391a0]]= 0; [[#variable7d1391a0]] < length; [[#variable7d1391a0]]++) {
    if (methods[ [[#variable7d1391a0]]].areParametersEqual(method)) {
      if (matchMethod == null) {
        if (methodParametersEqualsPattern(methods[ [[#variable7d1391a0]]].original()))
          return true;
      }
      else {
        if (methods[ [[#variable7d1391a0]]].original().areParametersEqual(matchMethod))
          return true;
      }
    }
  }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#7d139240]]
interfaces[i] 
12[[#7d139240]]
superClass 
21[[#7d1391a0]]
j 
22[[#7d1391a0]]
i