CloneSet1755


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
17201.000statement_sequence[3]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
117463
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/QualifiedNameReference.java
217518
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/QualifiedNameReference.java
Clone Instance
1
Line Count
17
Source Line
463
Source File
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/QualifiedNameReference.java

                FieldBinding lastFieldBinding = generateReadSequence(currentScope, codeStream);
                SyntheticMethodBinding accessor =
                        syntheticReadAccessors == null ?
                                  null:
                                  syntheticReadAccessors[syntheticReadAccessors.length - 1];
                if (lastFieldBinding.isStatic()) {
                        if (accessor == null) {
                                codeStream.getstatic(lastFieldBinding);
                        }
                        else   {
                                codeStream.invokestatic(accessor);
                        }
                }
                else   {
                        codeStream.dup();
                        if (accessor == null) {
                                codeStream.getfield(lastFieldBinding);
                        }
                        else   {
                                codeStream.invokestatic(accessor);
                        }
                }


Clone Instance
2
Line Count
17
Source Line
518
Source File
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/QualifiedNameReference.java

                FieldBinding lastFieldBinding = generateReadSequence(currentScope, codeStream);
                SyntheticMethodBinding accessor =
                        syntheticReadAccessors == null ?
                                  null:
                                  syntheticReadAccessors[syntheticReadAccessors.length - 1];
                if (lastFieldBinding.isStatic()) {
                        if (accessor == null) {
                                codeStream.getstatic(lastFieldBinding);
                        }
                        else   {
                                codeStream.invokestatic(accessor);
                        }
                }
                else   {
                        codeStream.dup();
                        if (accessor == null) {
                                codeStream.getfield(lastFieldBinding);
                        }
                        else   {
                                codeStream.invokestatic(accessor);
                        }
                }


Clone AbstractionParameter Count: 0Parameter Bindings

FieldBinding lastFieldBinding = generateReadSequence(currentScope, codeStream);
SyntheticMethodBinding accessor = syntheticReadAccessors == null ? null: syntheticReadAccessors[syntheticReadAccessors.length - 1];
if (lastFieldBinding.isStatic()) {
  if (accessor == null) {
    codeStream.getstatic(lastFieldBinding);
  }
  else {
    codeStream.invokestatic(accessor);
  }
}
else {
  codeStream.dup();
  if (accessor == null) {
    codeStream.getfield(lastFieldBinding);
  }
  else {
    codeStream.invokestatic(accessor);
  }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None