CloneSet870


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
25210.998statement_sequence[3]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
125101
plugins/org.eclipse.jdt.core/eval/org/eclipse/jdt/internal/eval/EvaluationContext.java
225522
plugins/org.eclipse.jdt.core/eval/org/eclipse/jdt/internal/eval/EvaluationContext.java
Clone Instance
1
Line Count
25
Source Line
101
Source File
plugins/org.eclipse.jdt.core/eval/org/eclipse/jdt/internal/eval/EvaluationContext.java

        final char[] className = "CodeSnippetCompletion".toCharArray(); //$NON-NLS-1$
        final CodeSnippetToCuMapper mapper = new CodeSnippetToCuMapper(
                codeSnippet, 
                this.packageName, 
                this.imports, 
                className, 
                this.installedVars == null ? null:  this.installedVars.className, 
                this.localVariableNames, 
                this.localVariableTypeNames, 
                this.localVariableModifiers, 
                this.declaringTypeName, 
                this.lineSeparator                                    );

        ICompilationUnit sourceUnit = new ICompilationUnit() {
                public char[] getFileName() {
                        return CharOperation.concat(className, Util.defaultJavaExtension().toCharArray());
                }

                public char[] getContents() {
                        return mapper.getCUSource(EvaluationContext.this.lineSeparator);
                }

                public char[] getMainTypeName() {
                        return className;
                }

                public char[][] getPackageName() {
                        return null;
                }
                                      };


Clone Instance
2
Line Count
25
Source Line
522
Source File
plugins/org.eclipse.jdt.core/eval/org/eclipse/jdt/internal/eval/EvaluationContext.java

        final char[] className = "CodeSnippetSelection".toCharArray(); //$NON-NLS-1$
        final CodeSnippetToCuMapper mapper = new CodeSnippetToCuMapper(
                codeSnippet, 
                this.packageName, 
                this.imports, 
                className, 
                this.installedVars == null ? null:  this.installedVars.className, 
                this.localVariableNames, 
                this.localVariableTypeNames, 
                this.localVariableModifiers, 
                this.declaringTypeName, 
                this.lineSeparator                                    );

        ICompilationUnit sourceUnit = new ICompilationUnit() {
                public char[] getFileName() {
                        return CharOperation.concat(className, Util.defaultJavaExtension().toCharArray());
                }

                public char[] getContents() {
                        return mapper.getCUSource(EvaluationContext.this.lineSeparator);
                }

                public char[] getMainTypeName() {
                        return className;
                }

                public char[][] getPackageName() {
                        return null;
                }
                                      };


Clone AbstractionParameter Count: 1Parameter Bindings

final char[] className = [[#variable5fef5840]].toCharArray(); //$NON-NLS-1$
final CodeSnippetToCuMapper mapper = new CodeSnippetToCuMapper(codeSnippet, this.packageName, this.imports, className, this.installedVars == null ? null: this.installedVars.className, this.localVariableNames, this.localVariableTypeNames, this.localVariableModifiers, this.declaringTypeName, this.lineSeparator);
ICompilationUnit sourceUnit = new ICompilationUnit() {
                                public char[] getFileName() {
                                  return CharOperation.concat(className, Util.defaultJavaExtension().toCharArray());
                                }

                                public char[] getContents() {
                                  return mapper.getCUSource(EvaluationContext.this.lineSeparator);
                                }

                                public char[] getMainTypeName() {
                                  return className;
                                }

                                public char[][] getPackageName() {
                                  return null;
                                }
                              };
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#5fef5840]]
"CodeSnippetSelection" 
12[[#5fef5840]]
"CodeSnippetCompletion"