CloneSet1089


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

        //---- javadoc references ----------------------------------
        public boolean visit(MemberRef node) {
                IBinding binding = node.resolveBinding();
                if (isSourceAccess(binding)) {
                        if (isMovedMember(binding)) {
                                if (node.getQualifier() != null)
                                        rewrite(node, fTarget);
                        }
                        else    rewrite(node, fSource);
                }
                else   if (isTargetAccess(binding)) {
                        // remove qualifier:
                        SimpleName replace = (SimpleName) fCuRewrite.getASTRewrite().createCopyTarget(node.getName());
                        fCuRewrite.getASTRewrite().replace(node, replace, null);
                        fCuRewrite.getImportRemover().registerRemovedNode(node);
                       }
                return super.visit(node);
        }


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

        public boolean visit(MethodRef node) {
                IBinding binding = node.resolveBinding();
                if (isSourceAccess(binding)) {
                        if (isMovedMember(binding)) {
                                if (node.getQualifier() != null)
                                        rewrite(node, fTarget);
                        }
                        else    rewrite(node, fSource);
                }
                else   if (isTargetAccess(binding)) {
                        // remove qualifier:
                        SimpleName replace = (SimpleName) fCuRewrite.getASTRewrite().createCopyTarget(node.getName());
                        fCuRewrite.getASTRewrite().replace(node, replace, null);
                        fCuRewrite.getImportRemover().registerRemovedNode(node);
                       }
                return super.visit(node);
        }


Clone AbstractionParameter Count: 1Parameter Bindings

//---- javadoc references ----------------------------------
public boolean visit( [[#variable59ad9b40]] node) {
  IBinding binding = node.resolveBinding();
  if (isSourceAccess(binding)) {
    if (isMovedMember(binding)) {
      if (node.getQualifier() != null)
        rewrite(node, fTarget);
    }
    else
      rewrite(node, fSource);
  }
  else
    if (isTargetAccess(binding)) {
      // remove qualifier:
      SimpleName replace = (SimpleName) fCuRewrite.getASTRewrite().createCopyTarget(node.getName());
      fCuRewrite.getASTRewrite().replace(node, replace, null);
      fCuRewrite.getImportRemover().registerRemovedNode(node);
    }
  return super.visit(node);
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#59ad9b40]]
MemberRef 
12[[#59ad9b40]]
MethodRef