CloneSet3089


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
6210.961statement_sequence_member
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
162781
plugins/org.eclipse.jdt.core/codeassist/org/eclipse/jdt/internal/codeassist/CompletionEngine.java
264098
plugins/org.eclipse.jdt.core/codeassist/org/eclipse/jdt/internal/codeassist/CompletionEngine.java
Clone Instance
1
Line Count
6
Source Line
2781
Source File
plugins/org.eclipse.jdt.core/codeassist/org/eclipse/jdt/internal/codeassist/CompletionEngine.java

                                if (this.source != null &&
                                           this.source.length > this.endPosition &&
                                           this.source[this.endPosition] == '(') {
                                        completion = cloneMethod;
                                }
                                else           {
                                        completion = CharOperation.concat(cloneMethod, new char[] {
                                                                                                    '(', ')'
                                                                                                  } );
                                }


Clone Instance
2
Line Count
6
Source Line
4098
Source File
plugins/org.eclipse.jdt.core/codeassist/org/eclipse/jdt/internal/codeassist/CompletionEngine.java

                        // nothing to insert - do not want to replace the existing selector & arguments
                        if (this.source != null &&
                                   this.source.length > this.endPosition &&
                                   this.source[this.endPosition] == '(') {
                                completion = method.selector;
                        }
                        else   {
                                completion = CharOperation.concat(method.selector, new char[] {
                                                                                                '(', ')'
                                                                                              } );
                        }


Clone AbstractionParameter Count: 1Parameter Bindings

// nothing to insert - do not want to replace the existing selector & arguments
if (this.source != null && this.source.length > this.endPosition && this.source[this.endPosition] == '(') {
  completion = [[#variable5cc4bdc0]];
}
else {
  completion = CharOperation.concat( [[#variable5cc4bdc0]], new char[] {
                                                                         '(',
                                                                         ')'
                                                                       } );
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#5cc4bdc0]]
cloneMethod 
12[[#5cc4bdc0]]
method.selector