CloneSet1261


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
11210.995class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
111345
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/CompilationUnit.java
2121004
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/CompilationUnit.java
Clone Instance
1
Line Count
11
Source Line
345
Source File
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/CompilationUnit.java

/**
 * @see ISourceManipulation#copy(IJavaElement, IJavaElement, String, boolean, IProgressMonitor)
 */
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
                                                       };
        String[] renamings = null;
        if (rename != null) {
                renamings = new String[] {
                                          rename
                                         };
        }
        getJavaModel().copy(elements, containers, null, renamings, force, monitor);
}


Clone Instance
2
Line Count
12
Source Line
1004
Source File
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/CompilationUnit.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
                                                       };
        String[] renamings = null;
        if (rename != null) {
                renamings = new String[] {
                                          rename
                                         };
        }
        getJavaModel().move(elements, containers, null, renamings, force, monitor);
}


Clone AbstractionParameter Count: 1Parameter Bindings

/**
 * @see ISourceManipulation#copy(IJavaElement, IJavaElement, String, boolean, IProgressMonitor)
 */
/**
 * @see ISourceManipulation#move(IJavaElement, IJavaElement, String, boolean, IProgressMonitor)
 */
public void [[#variable58776260]](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
                                                 };
  String[] renamings = null;
  if (rename != null) {
    renamings = new String[] {
                               rename
                             };
  }
  getJavaModel(). [[#variable58776260]](elements, containers, null, renamings, force, monitor);
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#58776260]]
copy 
12[[#58776260]]
move