CloneSet903


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
17220.992switch_groups[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
117608
plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/TypeBinding.java
217714
plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/TypeBinding.java
Clone Instance
1
Line Count
17
Source Line
608
Source File
plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/TypeBinding.java

                        case Binding.RAW_TYPE:
                                return getTypeDeclaration().getName();

                        case Binding.ARRAY_TYPE:
                                ITypeBinding elementType = getElementType();
                                if (elementType.isLocal() || elementType.isAnonymous() || elementType.isCapture()) {
                                        return NO_NAME;
                                }
                                int dimensions = getDimensions();
                                char[] brackets = new char[dimensions * 2];
                                for (int i = dimensions * 2 - 1; i >= 0; i -= 2) {
                                        brackets[i] = ']';
                                        brackets[i - 1] = '[';
                                }
                                buffer = new StringBuffer(elementType.getName());
                                buffer.append(brackets);
                                return String.valueOf(buffer);


Clone Instance
2
Line Count
17
Source Line
714
Source File
plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/TypeBinding.java

                        case Binding.RAW_TYPE:
                                return getTypeDeclaration().getQualifiedName();

                        case Binding.ARRAY_TYPE:
                                ITypeBinding elementType = getElementType();
                                if (elementType.isLocal() || elementType.isAnonymous() || elementType.isCapture()) {
                                        return NO_NAME;
                                }
                                final int dimensions = getDimensions();
                                char[] brackets = new char[dimensions * 2];
                                for (int i = dimensions * 2 - 1; i >= 0; i -= 2) {
                                        brackets[i] = ']';
                                        brackets[i - 1] = '[';
                                }
                                buffer = new StringBuffer(elementType.getQualifiedName());
                                buffer.append(brackets);
                                return String.valueOf(buffer);


Clone AbstractionParameter Count: 2Parameter Bindings

case Binding.RAW_TYPE:
  return getTypeDeclaration(). [[#variableb342fdc0]]();
case Binding.ARRAY_TYPE:
  ITypeBinding elementType = getElementType();
  if (elementType.isLocal() || elementType.isAnonymous() || elementType.isCapture()) {
    return NO_NAME;
  }
   [[#variableb342fce0]]int dimensions = getDimensions();
  char[] brackets = new char[dimensions * 2];
  for (int i = dimensions * 2 - 1; i >= 0; i -= 2) {
    brackets[i] = ']';
    brackets[i - 1] = '[';
  }
  buffer = new StringBuffer(elementType. [[#variableb342fdc0]]());
  buffer.append(brackets);
  return String.valueOf(buffer);
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#b342fdc0]]
getQualifiedName 
12[[#b342fdc0]]
getName 
21[[#b342fce0]]
final 
22[[#b342fce0]]