CloneSet1391


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
10201.000class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
110416
plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/fix/CleanUpRefactoring.java
210272
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/CorrectionMarkerResolutionGenerator.java
Clone Instance
1
Line Count
10
Source Line
416
Source File
plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/fix/CleanUpRefactoring.java

        private void findFilesToBeModified(CompositeChange change, List result) throws JavaModelException {
                Change[] children = change.getChildren();
                for (int i = 0; i < children.length; i++) {
                        Change child = children[i];
                        if (child instanceof CompositeChange) {
                                findFilesToBeModified((CompositeChange) child, result);
                        }
                        else   if (child instanceof MultiStateCompilationUnitChange) {
                                result.add(((MultiStateCompilationUnitChange) child).getCompilationUnit().getCorrespondingResource());
                               }
                               else
                               if (child instanceof CompilationUnitChange) {
                                result.add(((CompilationUnitChange) child).getCompilationUnit().getCorrespondingResource());
                               }
                }
        }


Clone Instance
2
Line Count
10
Source Line
272
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/CorrectionMarkerResolutionGenerator.java

                private void findFilesToBeModified(CompositeChange change, List result) throws JavaModelException {
                        Change[] children = change.getChildren();
                        for (int i = 0; i < children.length; i++) {
                                Change child = children[i];
                                if (child instanceof CompositeChange) {
                                        findFilesToBeModified((CompositeChange) child, result);
                                }
                                else   if (child instanceof MultiStateCompilationUnitChange) {
                                        result.add(((MultiStateCompilationUnitChange) child).getCompilationUnit().getCorrespondingResource());
                                       }
                                       else
                                       if (child instanceof CompilationUnitChange) {
                                        result.add(((CompilationUnitChange) child).getCompilationUnit().getCorrespondingResource());
                                       }
                        }
                }


Clone AbstractionParameter Count: 0Parameter Bindings

private void findFilesToBeModified(CompositeChange change, List result) throws JavaModelException {
  Change[] children = change.getChildren();
  for (int i = 0; i < children.length; i++) {
    Change child = children[i];
    if (child instanceof CompositeChange) {
      findFilesToBeModified((CompositeChange) child, result);
    }
    else
      if (child instanceof MultiStateCompilationUnitChange) {
        result.add(((MultiStateCompilationUnitChange) child).getCompilationUnit().getCorrespondingResource());
      }
      else
        if (child instanceof CompilationUnitChange) {
          result.add(((CompilationUnitChange) child).getCompilationUnit().getCorrespondingResource());
        }
  }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None