CloneSet880


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
21210.957executable_statement
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
121728
plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/DefaultBindingResolver.java
221939
plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/DefaultBindingResolver.java
Clone Instance
1
Line Count
21
Source Line
728
Source File
plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/DefaultBindingResolver.java

                                                              {
                                // an extra lookup is required
                                BlockScope internalScope = (BlockScope) this.astNodesToBlockScope.get(name);
                                Binding binding = null;
                                try {
                                        if (internalScope == null) {
                                                if (this.scope == null) return null;
                                                binding = this.scope.getTypeOrPackage(CharOperation.subarray(tokens, 0, index));
                                        }
                                        else   {
                                                binding = internalScope.getTypeOrPackage(CharOperation.subarray(tokens, 0, index));
                                        }
                                } catch (AbortCompilation e) {
                                        // see https://bugs.eclipse.org/bugs/show_bug.cgi?id=53357
                                        // see https://bugs.eclipse.org/bugs/show_bug.cgi?id=63550
                                        // see https://bugs.eclipse.org/bugs/show_bug.cgi?id=64299
                                  }
                                if (binding instanceof org.eclipse.jdt.internal.compiler.lookup.PackageBinding) {
                                        return null;
                                }
                                else   if (binding instanceof org.eclipse.jdt.internal.compiler.lookup.TypeBinding) {
                                        // it is a type
                                        return this.getTypeBinding((org.eclipse.jdt.internal.compiler.lookup.TypeBinding) binding);
                                       }
                                                              }


Clone Instance
2
Line Count
21
Source Line
939
Source File
plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/DefaultBindingResolver.java

                                                              {
                                // an extra lookup is required
                                BlockScope internalScope = (BlockScope) this.astNodesToBlockScope.get(name);
                                Binding binding = null;
                                try {
                                        if (internalScope == null) {
                                                if (this.scope == null) return null;
                                                binding = this.scope.getTypeOrPackage(CharOperation.subarray(tokens, 0, index));
                                        }
                                        else   {
                                                binding = internalScope.getTypeOrPackage(CharOperation.subarray(tokens, 0, index));
                                        }
                                } catch (AbortCompilation e) {
                                        // see https://bugs.eclipse.org/bugs/show_bug.cgi?id=53357
                                        // see https://bugs.eclipse.org/bugs/show_bug.cgi?id=63550
                                        // see https://bugs.eclipse.org/bugs/show_bug.cgi?id=64299
                                  }
                                if (binding instanceof org.eclipse.jdt.internal.compiler.lookup.PackageBinding) {
                                        return this.getPackageBinding((org.eclipse.jdt.internal.compiler.lookup.PackageBinding) binding);
                                }
                                else   if (binding instanceof org.eclipse.jdt.internal.compiler.lookup.TypeBinding) {
                                        // it is a type
                                        return this.getTypeBinding((org.eclipse.jdt.internal.compiler.lookup.TypeBinding) binding);
                                       }
                                                              }


Clone AbstractionParameter Count: 1Parameter Bindings

{
  // an extra lookup is required
  BlockScope internalScope = (BlockScope) this.astNodesToBlockScope.get(name);
  Binding binding = null;
  try {
    if (internalScope == null) {
      if (this.scope == null)
        return null;
      binding = this.scope.getTypeOrPackage(CharOperation.subarray(tokens, 0, index));
    }
    else {
      binding = internalScope.getTypeOrPackage(CharOperation.subarray(tokens, 0, index));
    }
  }
  catch (AbortCompilation e) {
  // see https://bugs.eclipse.org/bugs/show_bug.cgi?id=53357
  // see https://bugs.eclipse.org/bugs/show_bug.cgi?id=63550
  // see https://bugs.eclipse.org/bugs/show_bug.cgi?id=64299
  }
  if (binding instanceof org.eclipse.jdt.internal.compiler.lookup.PackageBinding) {
    return [[#variableb36376c0]];
  }
  else
    if (binding instanceof org.eclipse.jdt.internal.compiler.lookup.TypeBinding) {
      // it is a type
      return this.getTypeBinding((org.eclipse.jdt.internal.compiler.lookup.TypeBinding) binding);
    }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#b36376c0]]
null 
12[[#b36376c0]]
this.getPackageBinding((org.eclipse.jdt.internal.compiler.lookup.PackageBinding) binding)