CloneSet1847


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
9260.952class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
19595
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/TypeContextChecker.java
29618
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/TypeContextChecker.java
Clone Instance
1
Line Count
9
Source Line
595
Source File
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/TypeContextChecker.java

        private static void appendTypeParameters(StringBuffer buf, List typeParameters) {
                int typeParametersCount = typeParameters.size();
                if (typeParametersCount > 0) {
                        buf.append('<');
                        for (int i = 0; i < typeParametersCount; i++) {
                                TypeParameter typeParameter = (TypeParameter) typeParameters.get(i);
                                buf.append(ASTNodes.asString(typeParameter));
                                if (i < typeParametersCount - 1)
                                        buf.append(',');
                        }
                }
        }


Clone Instance
2
Line Count
9
Source Line
618
Source File
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/TypeContextChecker.java

        private static void appendSuperInterfaces(StringBuffer buf, List superInterfaces) {
                int superInterfaceCount = superInterfaces.size();
                if (superInterfaceCount > 0) {
                        buf.append(" implements "); //$NON-NLS-1$
                        for (int i = 0; i < superInterfaceCount; i++) {
                                Type superInterface = (Type) superInterfaces.get(i);
                                buf.append(ASTNodes.asString(superInterface));
                                if (i < superInterfaceCount - 1)
                                        buf.append(',');
                        }
                }
        }


Clone AbstractionParameter Count: 6Parameter Bindings

private static void [[#variablebe453c20]](StringBuffer buf, List  [[#variablebe453b80]]) {
  int  [[#variablebe453ae0]]= [[#variablebe453b80]].size();
  if ( [[#variablebe453ae0]] > 0) {
    buf.append( [[#variablebe453a40]]); //$NON-NLS-1$
    for (int i = 0; i <  [[#variablebe453ae0]]; i++) {
       [[#variablebe4539c0]]  [[#variablebe4538e0]]= ( [[#variablebe4539c0]])  [[#variablebe453b80]].get(i);
      buf.append(ASTNodes.asString( [[#variablebe4538e0]]));
      if (i <  [[#variablebe453ae0]] - 1)
        buf.append(',');
    }
  }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#be453c20]]
appendTypeParameters 
12[[#be453c20]]
appendSuperInterfaces 
21[[#be453b80]]
typeParameters 
22[[#be453b80]]
superInterfaces 
31[[#be453ae0]]
typeParametersCount 
32[[#be453ae0]]
superInterfaceCount 
41[[#be453a40]]
'<' 
42[[#be453a40]]
" implements " 
51[[#be4539c0]]
TypeParameter 
52[[#be4539c0]]
Type 
61[[#be4538e0]]
typeParameter 
62[[#be4538e0]]
superInterface