CloneSet2239


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
10310.988class_body_declarations[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
110290
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/code/TargetProvider.java
210301
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/code/TargetProvider.java
310313
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/code/TargetProvider.java
Clone Instance
1
Line Count
10
Source Line
290
Source File
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/code/TargetProvider.java

                public boolean visit(FieldDeclaration node) {
                        fBodies.add(fCurrent);
                        fCurrent = new BodyData(node);
                        return true;
                }

                public void endVisit(FieldDeclaration node) {
                        if (fCurrent.hasInvocations()) {
                                result.put(node, fCurrent);
                        }
                        endVisitType();
                }


Clone Instance
2
Line Count
10
Source Line
301
Source File
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/code/TargetProvider.java

                public boolean visit(MethodDeclaration node) {
                        fBodies.add(fCurrent);
                        fCurrent = new BodyData(node);
                        return true;
                }

                public void endVisit(MethodDeclaration node) {
                        if (fCurrent.hasInvocations()) {
                                result.put(node, fCurrent);
                        }
                        endVisitType();
                }


Clone Instance
3
Line Count
10
Source Line
313
Source File
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/code/TargetProvider.java

                public boolean visit(Initializer node) {
                        fBodies.add(fCurrent);
                        fCurrent = new BodyData(node);
                        return true;
                }

                public void endVisit(Initializer node) {
                        if (fCurrent.hasInvocations()) {
                                result.put(node, fCurrent);
                        }
                        endVisitType();
                }


Clone AbstractionParameter Count: 1Parameter Bindings

public boolean visit( [[#variableb7833d60]] node) {
  fBodies.add(fCurrent);
  fCurrent = new BodyData(node);
  return true;
}

public void endVisit( [[#variableb7833d60]] node) {
  if (fCurrent.hasInvocations()) {
    result.put(node, fCurrent);
  }
  endVisitType();
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#b7833d60]]
Initializer 
12[[#b7833d60]]
MethodDeclaration 
13[[#b7833d60]]
FieldDeclaration