Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
9 | 2 | 6 | 0.952 | class_body_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 9 | 595 | plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/TypeContextChecker.java |
2 | 9 | 618 | 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(','); } } } |
| ||||
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(','); } } } |
| |||
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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#be453c20]] | appendTypeParameters |
1 | 2 | [[#be453c20]] | appendSuperInterfaces |
2 | 1 | [[#be453b80]] | typeParameters |
2 | 2 | [[#be453b80]] | superInterfaces |
3 | 1 | [[#be453ae0]] | typeParametersCount |
3 | 2 | [[#be453ae0]] | superInterfaceCount |
4 | 1 | [[#be453a40]] | '<' |
4 | 2 | [[#be453a40]] | " implements " |
5 | 1 | [[#be4539c0]] | TypeParameter |
5 | 2 | [[#be4539c0]] | Type |
6 | 1 | [[#be4538e0]] | typeParameter |
6 | 2 | [[#be4538e0]] | superInterface |