CloneSet41


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
52360.969class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
150680
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/ClassFile.java
250247
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/CompilationUnit.java
352374
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/eval/EvaluationContextWrapper.java
Clone Instance
1
Line Count
50
Source Line
680
Source File
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/ClassFile.java

/**
 * @see ICodeAssist#codeComplete(int, ICodeCompletionRequestor)
 * @deprecated - should use codeComplete(int, ICompletionRequestor) instead
 */
public void codeComplete(int offset, final org.eclipse.jdt.core.ICodeCompletionRequestor requestor) throws JavaModelException {

        if (requestor == null) {
                codeComplete(offset, (ICompletionRequestor) null);
                return;
        }
        codeComplete(
                offset, 
                new ICompletionRequestor() {
                        public void acceptAnonymousType(char[] superTypePackageName, char[] superTypeName, char[][] parameterPackageNames, char[][] parameterTypeNames, char[][] parameterNames, char[] completionName, int modifiers, int completionStart, int completionEnd, int relevance) {
                                // ignore
                        }

                        public void acceptClass(char[] packageName, char[] className, char[] completionName, int modifiers, int completionStart, int completionEnd, int relevance) {
                                requestor.acceptClass(packageName, className, completionName, modifiers, completionStart, completionEnd);
                        }

                        public void acceptError(IProblem error) {
                                // was disabled in 1.0
                        }

                        public void acceptField(char[] declaringTypePackageName, char[] declaringTypeName, char[] fieldName, char[] typePackageName, char[] typeName, char[] completionName, int modifiers, int completionStart, int completionEnd, int relevance) {
                                requestor.acceptField(declaringTypePackageName, declaringTypeName, fieldName, typePackageName, typeName, completionName, modifiers, completionStart, completionEnd);
                        }

                        public void acceptInterface(char[] packageName, char[] interfaceName, char[] completionName, int modifiers, int completionStart, int completionEnd, int relevance) {
                                requestor.acceptInterface(packageName, interfaceName, completionName, modifiers, completionStart, completionEnd);
                        }

                        public void acceptKeyword(char[] keywordName, int completionStart, int completionEnd, int relevance) {
                                requestor.acceptKeyword(keywordName, completionStart, completionEnd);
                        }

                        public void acceptLabel(char[] labelName, int completionStart, int completionEnd, int relevance) {
                                requestor.acceptLabel(labelName, completionStart, completionEnd);
                        }

                        public void acceptLocalVariable(char[] localVarName, char[] typePackageName, char[] typeName, int modifiers, int completionStart, int completionEnd, int relevance) {
                                // ignore
                        }

                        public void acceptMethod(char[] declaringTypePackageName, char[] declaringTypeName, char[] selector, char[][] parameterPackageNames, char[][] parameterTypeNames, char[][] parameterNames, char[] returnTypePackageName, char[] returnTypeName, char[] completionName, int modifiers, int completionStart, int completionEnd, int relevance) {
                                // skip parameter names
                                requestor.acceptMethod(declaringTypePackageName, declaringTypeName, selector, parameterPackageNames, parameterTypeNames, returnTypePackageName, returnTypeName, completionName, modifiers, completionStart, completionEnd);
                        }

                        public void acceptMethodDeclaration(char[] declaringTypePackageName, char[] declaringTypeName, char[] selector, char[][] parameterPackageNames, char[][] parameterTypeNames, char[][] parameterNames, char[] returnTypePackageName, char[] returnTypeName, char[] completionName, int modifiers, int completionStart, int completionEnd, int relevance) {
                                // ignore
                        }

                        public void acceptModifier(char[] modifierName, int completionStart, int completionEnd, int relevance) {
                                requestor.acceptModifier(modifierName, completionStart, completionEnd);
                        }

                        public void acceptPackage(char[] packageName, char[] completionName, int completionStart, int completionEnd, int relevance) {
                                requestor.acceptPackage(packageName, completionName, completionStart, completionEnd);
                        }

                        public void acceptType(char[] packageName, char[] typeName, char[] completionName, int completionStart, int completionEnd, int relevance) {
                                requestor.acceptType(packageName, typeName, completionName, completionStart, completionEnd);
                        }

                        public void acceptVariableName(char[] typePackageName, char[] typeName, char[] varName, char[] completionName, int completionStart, int completionEnd, int relevance) {
                                // ignore
                        }
                }   );
}


Clone Instance
2
Line Count
50
Source Line
247
Source File
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/CompilationUnit.java

/**
 * @see ICodeAssist#codeComplete(int, ICodeCompletionRequestor)
 * @deprecated - use codeComplete(int, ICompletionRequestor)
 */
public void codeComplete(int offset, final ICodeCompletionRequestor requestor) throws JavaModelException {

        if (requestor == null) {
                codeComplete(offset, (ICompletionRequestor) null);
                return;
        }
        codeComplete(
                offset, 
                new ICompletionRequestor() {
                        public void acceptAnonymousType(char[] superTypePackageName, char[] superTypeName, char[][] parameterPackageNames, char[][] parameterTypeNames, char[][] parameterNames, char[] completionName, int modifiers, int completionStart, int completionEnd, int relevance) {
                                // ignore
                        }

                        public void acceptClass(char[] packageName, char[] className, char[] completionName, int modifiers, int completionStart, int completionEnd, int relevance) {
                                requestor.acceptClass(packageName, className, completionName, modifiers, completionStart, completionEnd);
                        }

                        public void acceptError(IProblem error) {
                                // was disabled in 1.0
                        }

                        public void acceptField(char[] declaringTypePackageName, char[] declaringTypeName, char[] fieldName, char[] typePackageName, char[] typeName, char[] completionName, int modifiers, int completionStart, int completionEnd, int relevance) {
                                requestor.acceptField(declaringTypePackageName, declaringTypeName, fieldName, typePackageName, typeName, completionName, modifiers, completionStart, completionEnd);
                        }

                        public void acceptInterface(char[] packageName, char[] interfaceName, char[] completionName, int modifiers, int completionStart, int completionEnd, int relevance) {
                                requestor.acceptInterface(packageName, interfaceName, completionName, modifiers, completionStart, completionEnd);
                        }

                        public void acceptKeyword(char[] keywordName, int completionStart, int completionEnd, int relevance) {
                                requestor.acceptKeyword(keywordName, completionStart, completionEnd);
                        }

                        public void acceptLabel(char[] labelName, int completionStart, int completionEnd, int relevance) {
                                requestor.acceptLabel(labelName, completionStart, completionEnd);
                        }

                        public void acceptLocalVariable(char[] localVarName, char[] typePackageName, char[] typeName, int modifiers, int completionStart, int completionEnd, int relevance) {
                                // ignore
                        }

                        public void acceptMethod(char[] declaringTypePackageName, char[] declaringTypeName, char[] selector, char[][] parameterPackageNames, char[][] parameterTypeNames, char[][] parameterNames, char[] returnTypePackageName, char[] returnTypeName, char[] completionName, int modifiers, int completionStart, int completionEnd, int relevance) {
                                // skip parameter names
                                requestor.acceptMethod(declaringTypePackageName, declaringTypeName, selector, parameterPackageNames, parameterTypeNames, returnTypePackageName, returnTypeName, completionName, modifiers, completionStart, completionEnd);
                        }

                        public void acceptMethodDeclaration(char[] declaringTypePackageName, char[] declaringTypeName, char[] selector, char[][] parameterPackageNames, char[][] parameterTypeNames, char[][] parameterNames, char[] returnTypePackageName, char[] returnTypeName, char[] completionName, int modifiers, int completionStart, int completionEnd, int relevance) {
                                // ignore
                        }

                        public void acceptModifier(char[] modifierName, int completionStart, int completionEnd, int relevance) {
                                requestor.acceptModifier(modifierName, completionStart, completionEnd);
                        }

                        public void acceptPackage(char[] packageName, char[] completionName, int completionStart, int completionEnd, int relevance) {
                                requestor.acceptPackage(packageName, completionName, completionStart, completionEnd);
                        }

                        public void acceptType(char[] packageName, char[] typeName, char[] completionName, int completionStart, int completionEnd, int relevance) {
                                requestor.acceptType(packageName, typeName, completionName, completionStart, completionEnd);
                        }

                        public void acceptVariableName(char[] typePackageName, char[] typeName, char[] varName, char[] completionName, int completionStart, int completionEnd, int relevance) {
                                // ignore
                        }
                }   );
}


Clone Instance
3
Line Count
52
Source Line
374
Source File
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/eval/EvaluationContextWrapper.java

/**
 * @see IEvaluationContext#codeComplete(String, int, ICodeCompletionRequestor)
 * @deprecated - use codeComplete(String, int, ICompletionRequestor) instead
 */
public void codeComplete(String codeSnippet, int position, final org.eclipse.jdt.core.ICodeCompletionRequestor requestor) throws JavaModelException {

        if (requestor == null) {
                codeComplete(codeSnippet, position, (ICompletionRequestor) null);
                return;
        }
        codeComplete(
                codeSnippet, 
                position, 
                new ICompletionRequestor() {
                        public void acceptAnonymousType(char[] superTypePackageName, char[] superTypeName, char[][] parameterPackageNames, char[][] parameterTypeNames, char[][] parameterNames, char[] completionName, int modifiers, int completionStart, int completionEnd, int relevance) {
                                // implements interface method
                        }

                        public void acceptClass(char[] packageName, char[] className, char[] completionName, int modifiers, int completionStart, int completionEnd, int relevance) {
                                requestor.acceptClass(packageName, className, completionName, modifiers, completionStart, completionEnd);
                        }

                        public void acceptError(IProblem error) {
                                // was disabled in 1.0
                        }

                        public void acceptField(char[] declaringTypePackageName, char[] declaringTypeName, char[] name, char[] typePackageName, char[] typeName, char[] completionName, int modifiers, int completionStart, int completionEnd, int relevance) {
                                requestor.acceptField(declaringTypePackageName, declaringTypeName, name, typePackageName, typeName, completionName, modifiers, completionStart, completionEnd);
                        }

                        public void acceptInterface(char[] packageName, char[] interfaceName, char[] completionName, int modifiers, int completionStart, int completionEnd, int relevance) {
                                requestor.acceptInterface(packageName, interfaceName, completionName, modifiers, completionStart, completionEnd);
                        }

                        public void acceptKeyword(char[] keywordName, int completionStart, int completionEnd, int relevance) {
                                requestor.acceptKeyword(keywordName, completionStart, completionEnd);
                        }

                        public void acceptLabel(char[] labelName, int completionStart, int completionEnd, int relevance) {
                                requestor.acceptLabel(labelName, completionStart, completionEnd);
                        }

                        public void acceptLocalVariable(char[] name, char[] typePackageName, char[] typeName, int modifiers, int completionStart, int completionEnd, int relevance) {
                                // ignore
                        }

                        public void acceptMethod(char[] declaringTypePackageName, char[] declaringTypeName, char[] selector, char[][] parameterPackageNames, char[][] parameterTypeNames, char[][] parameterNames, char[] returnTypePackageName, char[] returnTypeName, char[] completionName, int modifiers, int completionStart, int completionEnd, int relevance) {
                                // skip parameter names
                                requestor.acceptMethod(declaringTypePackageName, declaringTypeName, selector, parameterPackageNames, parameterTypeNames, returnTypePackageName, returnTypeName, completionName, modifiers, completionStart, completionEnd);
                        }

                        public void acceptMethodDeclaration(char[] declaringTypePackageName, char[] declaringTypeName, char[] selector, char[][] parameterPackageNames, char[][] parameterTypeNames, char[][] parameterNames, char[] returnTypePackageName, char[] returnTypeName, char[] completionName, int modifiers, int completionStart, int completionEnd, int relevance) {
                                // ignore
                        }

                        public void acceptModifier(char[] modifierName, int completionStart, int completionEnd, int relevance) {
                                requestor.acceptModifier(modifierName, completionStart, completionEnd);
                        }

                        public void acceptPackage(char[] packageName, char[] completionName, int completionStart, int completionEnd, int relevance) {
                                requestor.acceptPackage(packageName, completionName, completionStart, completionEnd);
                        }

                        public void acceptType(char[] packageName, char[] typeName, char[] completionName, int completionStart, int completionEnd, int relevance) {
                                requestor.acceptType(packageName, typeName, completionName, completionStart, completionEnd);
                        }

                        public void acceptVariableName(char[] typePackageName, char[] typeName, char[] name, char[] completionName, int completionStart, int completionEnd, int relevance) {
                                // ignore
                        }
                }   );
}


Clone AbstractionParameter Count: 6Parameter Bindings

/**
 * @see IEvaluationContext#codeComplete(String, int, ICodeCompletionRequestor)
 * @deprecated - use codeComplete(String, int, ICompletionRequestor) instead
 */
/**
 * @see ICodeAssist#codeComplete(int, ICodeCompletionRequestor)
 * @deprecated - use codeComplete(int, ICompletionRequestor)
 */
/**
 * @see ICodeAssist#codeComplete(int, ICodeCompletionRequestor)
 * @deprecated - should use codeComplete(int, ICompletionRequestor) instead
 */
public void codeComplete( [[#variable57792c00]], final [[#variable57792b80]] requestor) throws JavaModelException {
  if (requestor == null) {
    codeComplete( [[#variable577922a0]], (ICompletionRequestor) null);
    return;
  }
  codeComplete( [[#variable577922a0]], new ICompletionRequestor() {
                                         public void acceptAnonymousType(char[] superTypePackageName, char[] superTypeName, char[][] parameterPackageNames, char[][] parameterTypeNames, char[][] parameterNames, char[] completionName, int modifiers, int completionStart, int completionEnd, int relevance) {
                                         // implements interface method
                                         // ignore
                                         }

                                         public void acceptClass(char[] packageName, char[] className, char[] completionName, int modifiers, int completionStart, int completionEnd, int relevance) {
                                           requestor.acceptClass(packageName, className, completionName, modifiers, completionStart, completionEnd);
                                         }

                                         public void acceptError(IProblem error) {
                                         // was disabled in 1.0
                                         }

                                         public void acceptField(char[] declaringTypePackageName, char[] declaringTypeName, char[]  [[#variable57792100]], char[] typePackageName, char[] typeName, char[] completionName, int modifiers, int completionStart, int completionEnd, int relevance) {
                                           requestor.acceptField(declaringTypePackageName, declaringTypeName,  [[#variable57792100]], typePackageName, typeName, completionName, modifiers, completionStart, completionEnd);
                                         }

                                         public void acceptInterface(char[] packageName, char[] interfaceName, char[] completionName, int modifiers, int completionStart, int completionEnd, int relevance) {
                                           requestor.acceptInterface(packageName, interfaceName, completionName, modifiers, completionStart, completionEnd);
                                         }

                                         public void acceptKeyword(char[] keywordName, int completionStart, int completionEnd, int relevance) {
                                           requestor.acceptKeyword(keywordName, completionStart, completionEnd);
                                         }

                                         public void acceptLabel(char[] labelName, int completionStart, int completionEnd, int relevance) {
                                           requestor.acceptLabel(labelName, completionStart, completionEnd);
                                         }

                                         public void acceptLocalVariable(char[]  [[#variable761e3a20]], char[] typePackageName, char[] typeName, int modifiers, int completionStart, int completionEnd, int relevance) {
                                         // ignore
                                         }

                                         public void acceptMethod(char[] declaringTypePackageName, char[] declaringTypeName, char[] selector, char[][] parameterPackageNames, char[][] parameterTypeNames, char[][] parameterNames, char[] returnTypePackageName, char[] returnTypeName, char[] completionName, int modifiers, int completionStart, int completionEnd, int relevance) {
                                           // skip parameter names
                                           requestor.acceptMethod(declaringTypePackageName, declaringTypeName, selector, parameterPackageNames, parameterTypeNames, returnTypePackageName, returnTypeName, completionName, modifiers, completionStart, completionEnd);
                                         }

                                         public void acceptMethodDeclaration(char[] declaringTypePackageName, char[] declaringTypeName, char[] selector, char[][] parameterPackageNames, char[][] parameterTypeNames, char[][] parameterNames, char[] returnTypePackageName, char[] returnTypeName, char[] completionName, int modifiers, int completionStart, int completionEnd, int relevance) {
                                         // ignore
                                         }

                                         public void acceptModifier(char[] modifierName, int completionStart, int completionEnd, int relevance) {
                                           requestor.acceptModifier(modifierName, completionStart, completionEnd);
                                         }

                                         public void acceptPackage(char[] packageName, char[] completionName, int completionStart, int completionEnd, int relevance) {
                                           requestor.acceptPackage(packageName, completionName, completionStart, completionEnd);
                                         }

                                         public void acceptType(char[] packageName, char[] typeName, char[] completionName, int completionStart, int completionEnd, int relevance) {
                                           requestor.acceptType(packageName, typeName, completionName, completionStart, completionEnd);
                                         }

                                         public void acceptVariableName(char[] typePackageName, char[] typeName, char[]  [[#variable57792120]], char[] completionName, int completionStart, int completionEnd, int relevance) {
                                         // ignore
                                         }
                                       } );
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#57792c00]]
String codeSnippet, int position 
12[[#57792c00]]
int offset 
13[[#57792c00]]
int offset 
21[[#57792b80]]
org.eclipse.jdt.core.ICodeCompletionRequestor 
22[[#57792b80]]
ICodeCompletionRequestor 
23[[#57792b80]]
org.eclipse.jdt.core.ICodeCompletionRequestor 
31[[#577922a0]]
codeSnippet, position 
32[[#577922a0]]
offset 
33[[#577922a0]]
offset 
41[[#57792100]]
name 
42[[#57792100]]
fieldName 
43[[#57792100]]
fieldName 
51[[#761e3a20]]
name 
52[[#761e3a20]]
localVarName 
53[[#761e3a20]]
localVarName 
61[[#57792120]]
name 
62[[#57792120]]
varName 
63[[#57792120]]
varName