CloneSet774


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
21230.988class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
12192
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/JavaModelCache.java
221130
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/JavaModelCache.java
Clone Instance
1
Line Count
21
Source Line
92
Source File
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/JavaModelCache.java

/**
 *  Returns the info for the element.
 */
public Object getInfo(IJavaElement element) {
        switch (element.getElementType()) {
                case IJavaElement.JAVA_MODEL:
                        return this.modelInfo;
                case IJavaElement.JAVA_PROJECT:
                        return this.projectCache.get(element);
                case IJavaElement.PACKAGE_FRAGMENT_ROOT:
                        return this.rootCache.get(element);
                case IJavaElement.PACKAGE_FRAGMENT:
                        return this.pkgCache.get(element);
                case IJavaElement.COMPILATION_UNIT:
                case IJavaElement.CLASS_FILE:
                        return this.openableCache.get(element);
                case IJavaElement.TYPE:
                        Object result = this.jarTypeCache.get(element);
                        if (result != null)
                                return result;
                        else
                                return this.childrenCache.get(element);
                default:
                        return this.childrenCache.get(element);
              }
}


Clone Instance
2
Line Count
21
Source Line
130
Source File
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/JavaModelCache.java

/**
 *  Returns the info for this element without
 *  disturbing the cache ordering.
 */
protected Object peekAtInfo(IJavaElement element) {
        switch (element.getElementType()) {
                case IJavaElement.JAVA_MODEL:
                        return this.modelInfo;
                case IJavaElement.JAVA_PROJECT:
                        return this.projectCache.get(element);
                case IJavaElement.PACKAGE_FRAGMENT_ROOT:
                        return this.rootCache.peek(element);
                case IJavaElement.PACKAGE_FRAGMENT:
                        return this.pkgCache.peek(element);
                case IJavaElement.COMPILATION_UNIT:
                case IJavaElement.CLASS_FILE:
                        return this.openableCache.peek(element);
                case IJavaElement.TYPE:
                        Object result = this.jarTypeCache.peek(element);
                        if (result != null)
                                return result;
                        else
                                return this.childrenCache.get(element);
                default:
                        return this.childrenCache.get(element);
              }
}


Clone AbstractionParameter Count: 3Parameter Bindings

 [[#variableb9310580]]Object  [[#variableb9310500]](IJavaElement element) {
  switch (element.getElementType()) {
    case IJavaElement.JAVA_MODEL:
      return this.modelInfo;
    case IJavaElement.JAVA_PROJECT:
      return this.projectCache.get(element);
    case IJavaElement.PACKAGE_FRAGMENT_ROOT:
      return this.rootCache. [[#variableb9310480]](element);
    case IJavaElement.PACKAGE_FRAGMENT:
      return this.pkgCache. [[#variableb9310480]](element);
    case IJavaElement.COMPILATION_UNIT:
    case IJavaElement.CLASS_FILE:
      return this.openableCache. [[#variableb9310480]](element);
    case IJavaElement.TYPE:
      Object result = this.jarTypeCache. [[#variableb9310480]](element);
      if (result != null)
        return result;
      else
        return this.childrenCache.get(element);
    default:
      return this.childrenCache.get(element);
  }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#b9310580]]
/**
 *  Returns the info for this element without
 *  disturbing the cache ordering.
 */
protected 
12[[#b9310580]]
/**
 *  Returns the info for the element.
 */
public 
21[[#b9310500]]
peekAtInfo 
22[[#b9310500]]
getInfo 
31[[#b9310480]]
peek 
32[[#b9310480]]
get