CloneSet3371


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
9220.964statement_sequence[3]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
191388
plugins/org.eclipse.jdt.core/codeassist/org/eclipse/jdt/internal/codeassist/CompletionEngine.java
291423
plugins/org.eclipse.jdt.core/codeassist/org/eclipse/jdt/internal/codeassist/CompletionEngine.java
Clone Instance
1
Line Count
9
Source Line
1388
Source File
plugins/org.eclipse.jdt.core/codeassist/org/eclipse/jdt/internal/codeassist/CompletionEngine.java

                                // Set source range
                                int rangeStart = astNode.sourceStart;
                                if (messageSend.receiver.isThis()) {
                                        if (messageSend.completeInText()) {
                                                rangeStart = messageSend.separatorPosition;
                                        }
                                }
                                else   if (messageSend.completeInText()) {
                                        rangeStart = messageSend.receiver.sourceStart;
                                       }
                                setSourceRange(rangeStart, astNode.sourceEnd, false);


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

                                int rangeStart = astNode.sourceStart;
                                if (allocExpression.type.isThis()) {
                                        if (allocExpression.completeInText()) {
                                                rangeStart = allocExpression.separatorPosition;
                                        }
                                }
                                else   if (allocExpression.completeInText()) {
                                        rangeStart = allocExpression.type.sourceStart;
                                       }
                                setSourceRange(rangeStart, astNode.sourceEnd, false);


Clone AbstractionParameter Count: 2Parameter Bindings

// Set source range
int rangeStart = astNode.sourceStart;
if ( [[#variable5b4d6b40]]. [[#variable52333120]].isThis()) {
  if ( [[#variable5b4d6b40]].completeInText()) {
    rangeStart = [[#variable5b4d6b40]].separatorPosition;
  }
}
else
  if ( [[#variable5b4d6b40]].completeInText()) {
    rangeStart = [[#variable5b4d6b40]]. [[#variable52333120]].sourceStart;
  }
setSourceRange(rangeStart, astNode.sourceEnd, false);
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#5b4d6b40]]
allocExpression 
12[[#5b4d6b40]]
messageSend 
21[[#52333120]]
type 
22[[#52333120]]
receiver