CloneSet284


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
15410.996class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
115124
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/PackageFragment.java
215399
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/PackageFragment.java
31557
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/SourceRefElement.java
415237
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/SourceRefElement.java
Clone Instance
1
Line Count
15
Source Line
124
Source File
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/PackageFragment.java

/**
 * @see ISourceManipulation
 */
public void copy(IJavaElement container, IJavaElement sibling, String rename, boolean force, IProgressMonitor monitor) throws JavaModelException {
        if (container == null) {
                throw new IllegalArgumentException(Messages.operation_nullContainer);
        }
        IJavaElement[] elements = new IJavaElement[] {
                                                      this
                                                     };
        IJavaElement[] containers = new IJavaElement[] {
                                                        container
                                                       };
        IJavaElement[] siblings = null;
        if (sibling != null) {
                siblings = new IJavaElement[] {
                                               sibling
                                              };
        }
        String[] renamings = null;
        if (rename != null) {
                renamings = new String[] {
                                          rename
                                         };
        }
        getJavaModel().copy(elements, containers, siblings, renamings, force, monitor);
}


Clone Instance
2
Line Count
15
Source Line
399
Source File
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/PackageFragment.java

/**
 * @see ISourceManipulation#move(IJavaElement, IJavaElement, String, boolean, IProgressMonitor)
 */
public void move(IJavaElement container, IJavaElement sibling, String rename, boolean force, IProgressMonitor monitor) throws JavaModelException {
        if (container == null) {
                throw new IllegalArgumentException(Messages.operation_nullContainer);
        }
        IJavaElement[] elements = new IJavaElement[] {
                                                      this
                                                     };
        IJavaElement[] containers = new IJavaElement[] {
                                                        container
                                                       };
        IJavaElement[] siblings = null;
        if (sibling != null) {
                siblings = new IJavaElement[] {
                                               sibling
                                              };
        }
        String[] renamings = null;
        if (rename != null) {
                renamings = new String[] {
                                          rename
                                         };
        }
        getJavaModel().move(elements, containers, siblings, renamings, force, monitor);
}


Clone Instance
3
Line Count
15
Source Line
57
Source File
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/SourceRefElement.java

/**
 * @see ISourceManipulation
 */
public void copy(IJavaElement container, IJavaElement sibling, String rename, boolean force, IProgressMonitor monitor) throws JavaModelException {
        if (container == null) {
                throw new IllegalArgumentException(Messages.operation_nullContainer);
        }
        IJavaElement[] elements = new IJavaElement[] {
                                                      this
                                                     };
        IJavaElement[] containers = new IJavaElement[] {
                                                        container
                                                       };
        IJavaElement[] siblings = null;
        if (sibling != null) {
                siblings = new IJavaElement[] {
                                               sibling
                                              };
        }
        String[] renamings = null;
        if (rename != null) {
                renamings = new String[] {
                                          rename
                                         };
        }
        getJavaModel().copy(elements, containers, siblings, renamings, force, monitor);
}


Clone Instance
4
Line Count
15
Source Line
237
Source File
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/SourceRefElement.java

/**
 * @see ISourceManipulation
 */
public void move(IJavaElement container, IJavaElement sibling, String rename, boolean force, IProgressMonitor monitor) throws JavaModelException {
        if (container == null) {
                throw new IllegalArgumentException(Messages.operation_nullContainer);
        }
        IJavaElement[] elements = new IJavaElement[] {
                                                      this
                                                     };
        IJavaElement[] containers = new IJavaElement[] {
                                                        container
                                                       };
        IJavaElement[] siblings = null;
        if (sibling != null) {
                siblings = new IJavaElement[] {
                                               sibling
                                              };
        }
        String[] renamings = null;
        if (rename != null) {
                renamings = new String[] {
                                          rename
                                         };
        }
        getJavaModel().move(elements, containers, siblings, renamings, force, monitor);
}


Clone AbstractionParameter Count: 1Parameter Bindings

/**
 * @see ISourceManipulation
 */
/**
 * @see ISourceManipulation#move(IJavaElement, IJavaElement, String, boolean, IProgressMonitor)
 */
public void [[#variableb4301ee0]](IJavaElement container, IJavaElement sibling, String rename, boolean force, IProgressMonitor monitor) throws JavaModelException {
  if (container == null) {
    throw new IllegalArgumentException(Messages.operation_nullContainer);
  }
  IJavaElement[] elements = new IJavaElement[] {
                                                 this
                                               };
  IJavaElement[] containers = new IJavaElement[] {
                                                   container
                                                 };
  IJavaElement[] siblings = null;
  if (sibling != null) {
    siblings = new IJavaElement[] {
                                    sibling
                                  };
  }
  String[] renamings = null;
  if (rename != null) {
    renamings = new String[] {
                               rename
                             };
  }
  getJavaModel(). [[#variableb4301ee0]](elements, containers, siblings, renamings, force, monitor);
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#b4301ee0]]
copy 
12[[#b4301ee0]]
move 
13[[#b4301ee0]]
copy 
14[[#b4301ee0]]
move