CloneSet2275


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
12220.992class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
11269
plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/callhierarchy/CallHierarchy.java
21283
plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/callhierarchy/CallHierarchy.java
Clone Instance
1
Line Count
12
Source Line
69
Source File
plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/callhierarchy/CallHierarchy.java

    public Collection getImplementingMethods(IMethod method) {
        if (isSearchUsingImplementorsEnabled()) {
            IJavaElement[] result = Implementors.getInstance().searchForImplementors(new IJavaElement[] {
                        method
                                                                                                        }, new NullProgressMonitor());

            if ((result != null) && (result.length > 0)) {
                return Arrays.asList(result);
            }
        }

        return new ArrayList(0);
    }


Clone Instance
2
Line Count
12
Source Line
83
Source File
plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/callhierarchy/CallHierarchy.java

    public Collection getInterfaceMethods(IMethod method) {
        if (isSearchUsingImplementorsEnabled()) {
            IJavaElement[] result = Implementors.getInstance().searchForInterfaces(new IJavaElement[] {
                        method
                                                                                                      }, new NullProgressMonitor());

            if ((result != null) && (result.length > 0)) {
                return Arrays.asList(result);
            }
        }

        return new ArrayList(0);
    }


Clone AbstractionParameter Count: 2Parameter Bindings

public Collection  [[#variable55543fa0]](IMethod method) {
  if (isSearchUsingImplementorsEnabled()) {
    IJavaElement[] result = Implementors.getInstance(). [[#variable55543f20]](new IJavaElement[] {
                                                                                                   method
                                                                                                 }, new NullProgressMonitor());
    if ((result != null) && (result.length > 0)) {
      return Arrays.asList(result);
    }
  }
  return new ArrayList(0);
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#55543fa0]]
getImplementingMethods 
12[[#55543fa0]]
getInterfaceMethods 
21[[#55543f20]]
searchForImplementors 
22[[#55543f20]]
searchForInterfaces