CloneSet1448


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
13220.988statement_sequence[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
113352
plugins/org.eclipse.jdt.core/eval/org/eclipse/jdt/internal/eval/CodeSnippetFieldReference.java
213269
plugins/org.eclipse.jdt.core/eval/org/eclipse/jdt/internal/eval/CodeSnippetMessageSend.java
Clone Instance
1
Line Count
13
Source Line
352
Source File
plugins/org.eclipse.jdt.core/eval/org/eclipse/jdt/internal/eval/CodeSnippetFieldReference.java

                                if (this.evaluationContext.declaringTypeName != null) {
                                        this.delegateThis = scope.getField(scope.enclosingSourceType(), DELEGATE_THIS, this );
                                        if (this.delegateThis == null) { // if not found then internal error, field should have been found
                                                this.constant = Constant.NotAConstant;
                                                scope.problemReporter().invalidField(this, this.receiverType);
                                                return null;
                                        }
                                }
                                else   {
                                        this.constant = Constant.NotAConstant;
                                        scope.problemReporter().invalidField(this, this.receiverType);
                                        return null;
                                }
                        CodeSnippetScope localScope = new CodeSnippetScope(scope);


Clone Instance
2
Line Count
13
Source Line
269
Source File
plugins/org.eclipse.jdt.core/eval/org/eclipse/jdt/internal/eval/CodeSnippetMessageSend.java

                        if (this.evaluationContext.declaringTypeName != null) {
                                this.delegateThis = scope.getField(scope.enclosingSourceType(), DELEGATE_THIS, this );
                                if (this.delegateThis == null) { // if not found then internal error, field should have been found
                                        this.constant = Constant.NotAConstant;
                                        scope.problemReporter().invalidMethod(this, this.binding);
                                        return null;
                                }
                        }
                        else   {
                                this.constant = Constant.NotAConstant;
                                scope.problemReporter().invalidMethod(this, this.binding);
                                return null;
                        }
                        CodeSnippetScope localScope = new CodeSnippetScope(scope);


Clone AbstractionParameter Count: 2Parameter Bindings

if (this.evaluationContext.declaringTypeName != null) {
  this.delegateThis = scope.getField(scope.enclosingSourceType(), DELEGATE_THIS, this );
  if (this.delegateThis == null) { // if not found then internal error, field should have been found
    this.constant = Constant.NotAConstant;
    scope.problemReporter(). [[#variable6021a1c0]](this, this. [[#variable6021a1e0]]);
    return null;
  }
}
else {
  this.constant = Constant.NotAConstant;
  scope.problemReporter(). [[#variable6021a1c0]](this, this. [[#variable6021a1e0]]);
  return null;
}
CodeSnippetScope localScope = new CodeSnippetScope(scope);
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#6021a1c0]]
invalidMethod 
12[[#6021a1c0]]
invalidField 
21[[#6021a1e0]]
binding 
22[[#6021a1e0]]
receiverType