CloneSet895


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
12220.991class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
112163
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/structure/MovedMemberAnalyzer.java
212177
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/structure/MovedMemberAnalyzer.java
Clone Instance
1
Line Count
12
Source Line
163
Source File
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/structure/MovedMemberAnalyzer.java

        //---- helper methods --------------------------------------
        private boolean isSourceAccess(IBinding binding) {
                if (binding instanceof IMethodBinding) {
                        IMethodBinding method = (IMethodBinding) binding;
                        return Modifier.isStatic(method.getModifiers()) && Bindings.equals(fSource, method.getDeclaringClass());
                }
                else   if (binding instanceof ITypeBinding) {
                        ITypeBinding type = (ITypeBinding) binding;
                        return Modifier.isStatic(type.getModifiers()) && Bindings.equals(fSource, type.getDeclaringClass());
                       }
                       else
                       if (binding instanceof IVariableBinding) {
                        IVariableBinding field = (IVariableBinding) binding;
                        return field.isField() && Modifier.isStatic(field.getModifiers()) && Bindings.equals(fSource, field.getDeclaringClass());
                       }
                return false;
        }


Clone Instance
2
Line Count
12
Source Line
177
Source File
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/structure/MovedMemberAnalyzer.java

        private boolean isTargetAccess(IBinding binding) {
                if (binding instanceof IMethodBinding) {
                        IMethodBinding method = (IMethodBinding) binding;
                        return Modifier.isStatic(method.getModifiers()) && Bindings.equals(fTarget, method.getDeclaringClass());
                }
                else   if (binding instanceof ITypeBinding) {
                        ITypeBinding type = (ITypeBinding) binding;
                        return Modifier.isStatic(type.getModifiers()) && Bindings.equals(fTarget, type.getDeclaringClass());
                       }
                       else
                       if (binding instanceof IVariableBinding) {
                        IVariableBinding field = (IVariableBinding) binding;
                        return field.isField() && Modifier.isStatic(field.getModifiers()) && Bindings.equals(fTarget, field.getDeclaringClass());
                       }
                return false;
        }


Clone AbstractionParameter Count: 2Parameter Bindings

//---- helper methods --------------------------------------
private boolean  [[#variableb84c0940]](IBinding binding) {
  if (binding instanceof IMethodBinding) {
    IMethodBinding method = (IMethodBinding) binding;
    return Modifier.isStatic(method.getModifiers()) && Bindings.equals( [[#variableb84c08c0]], method.getDeclaringClass());
  }
  else
    if (binding instanceof ITypeBinding) {
      ITypeBinding type = (ITypeBinding) binding;
      return Modifier.isStatic(type.getModifiers()) && Bindings.equals( [[#variableb84c08c0]], type.getDeclaringClass());
    }
    else
      if (binding instanceof IVariableBinding) {
        IVariableBinding field = (IVariableBinding) binding;
        return field.isField() && Modifier.isStatic(field.getModifiers()) && Bindings.equals( [[#variableb84c08c0]], field.getDeclaringClass());
      }
  return false;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#b84c0940]]
isSourceAccess 
12[[#b84c0940]]
isTargetAccess 
21[[#b84c08c0]]
fSource 
22[[#b84c08c0]]
fTarget