CloneSet1190


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
11301.000statement_sequence_member
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
111172
plugins/org.eclipse.jdt.core/search/org/eclipse/jdt/internal/core/search/matching/OrLocator.java
211136
plugins/org.eclipse.jdt.core/search/org/eclipse/jdt/internal/core/search/matching/PackageReferenceLocator.java
311147
plugins/org.eclipse.jdt.core/search/org/eclipse/jdt/internal/core/search/matching/TypeReferenceLocator.java
Clone Instance
1
Line Count
11
Source Line
172
Source File
plugins/org.eclipse.jdt.core/search/org/eclipse/jdt/internal/core/search/matching/OrLocator.java

                if (binding instanceof FieldBinding) {
                        FieldBinding fieldBinding = (FieldBinding) binding;
                        if ( !fieldBinding.isStatic()) return;
                        refBinding = fieldBinding.declaringClass;
                }
                else   if (binding instanceof MethodBinding) {
                        MethodBinding methodBinding = (MethodBinding) binding;
                        if ( !methodBinding.isStatic()) return;
                        refBinding = methodBinding.declaringClass;
                       }
                       else
                       if (binding instanceof MemberTypeBinding) {
                        MemberTypeBinding memberBinding = (MemberTypeBinding) binding;
                        if ( !memberBinding.isStatic()) return;
                       }


Clone Instance
2
Line Count
11
Source Line
136
Source File
plugins/org.eclipse.jdt.core/search/org/eclipse/jdt/internal/core/search/matching/PackageReferenceLocator.java

                // for static import, binding can be a field binding or a member type binding
                // verify that in this case binding is static and use declaring class for fields
                if (binding instanceof FieldBinding) {
                        FieldBinding fieldBinding = (FieldBinding) binding;
                        if ( !fieldBinding.isStatic()) return;
                        refBinding = fieldBinding.declaringClass;
                }
                else   if (binding instanceof MethodBinding) {
                        MethodBinding methodBinding = (MethodBinding) binding;
                        if ( !methodBinding.isStatic()) return;
                        refBinding = methodBinding.declaringClass;
                       }
                       else
                       if (binding instanceof MemberTypeBinding) {
                        MemberTypeBinding memberBinding = (MemberTypeBinding) binding;
                        if ( !memberBinding.isStatic()) return;
                       }


Clone Instance
3
Line Count
11
Source Line
147
Source File
plugins/org.eclipse.jdt.core/search/org/eclipse/jdt/internal/core/search/matching/TypeReferenceLocator.java

                // for static import, binding can be a field binding or a member type binding
                // verify that in this case binding is static and use declaring class for fields
                if (binding instanceof FieldBinding) {
                        FieldBinding fieldBinding = (FieldBinding) binding;
                        if ( !fieldBinding.isStatic()) return;
                        refBinding = fieldBinding.declaringClass;
                }
                else   if (binding instanceof MethodBinding) {
                        MethodBinding methodBinding = (MethodBinding) binding;
                        if ( !methodBinding.isStatic()) return;
                        refBinding = methodBinding.declaringClass;
                       }
                       else
                       if (binding instanceof MemberTypeBinding) {
                        MemberTypeBinding memberBinding = (MemberTypeBinding) binding;
                        if ( !memberBinding.isStatic()) return;
                       }


Clone AbstractionParameter Count: 0Parameter Bindings

// for static import, binding can be a field binding or a member type binding
// verify that in this case binding is static and use declaring class for fields
if (binding instanceof FieldBinding) {
  FieldBinding fieldBinding = (FieldBinding) binding;
  if ( !fieldBinding.isStatic())
    return;
  refBinding = fieldBinding.declaringClass;
}
else
  if (binding instanceof MethodBinding) {
    MethodBinding methodBinding = (MethodBinding) binding;
    if ( !methodBinding.isStatic())
      return;
    refBinding = methodBinding.declaringClass;
  }
  else
    if (binding instanceof MemberTypeBinding) {
      MemberTypeBinding memberBinding = (MemberTypeBinding) binding;
      if ( !memberBinding.isStatic())
        return;
    }
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None