CloneSet885


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
8310.997class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
181135
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/CompilationUnit.java
28418
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/PackageFragment.java
38256
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/SourceRefElement.java
Clone Instance
1
Line Count
8
Source Line
1135
Source File
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/CompilationUnit.java

/**
 * @see ISourceManipulation#rename(String, boolean, IProgressMonitor)
 */
public void rename(String newName, boolean force, IProgressMonitor monitor) throws JavaModelException {
        if (newName == null) {
                throw new IllegalArgumentException(Messages.operation_nullName);
        }
        IJavaElement[] elements = new IJavaElement[] {
                                                      this
                                                     };
        IJavaElement[] dests = new IJavaElement[] {
                                                   this.getParent()
                                                  };
        String[] renamings = new String[] {
                                           newName
                                          };
        getJavaModel().rename(elements, dests, renamings, force, monitor);
}


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

/**
 * @see ISourceManipulation#rename(String, boolean, IProgressMonitor)
 */
public void rename(String newName, boolean force, IProgressMonitor monitor) throws JavaModelException {
        if (newName == null) {
                throw new IllegalArgumentException(Messages.element_nullName);
        }
        IJavaElement[] elements = new IJavaElement[] {
                                                      this
                                                     };
        IJavaElement[] dests = new IJavaElement[] {
                                                   this.getParent()
                                                  };
        String[] renamings = new String[] {
                                           newName
                                          };
        getJavaModel().rename(elements, dests, renamings, force, monitor);
}


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

/**
 * @see ISourceManipulation
 */
public void rename(String newName, boolean force, IProgressMonitor monitor) throws JavaModelException {
        if (newName == null) {
                throw new IllegalArgumentException(Messages.element_nullName);
        }
        IJavaElement[] elements = new IJavaElement[] {
                                                      this
                                                     };
        IJavaElement[] dests = new IJavaElement[] {
                                                   this.getParent()
                                                  };
        String[] renamings = new String[] {
                                           newName
                                          };
        getJavaModel().rename(elements, dests, renamings, force, monitor);
}


Clone AbstractionParameter Count: 1Parameter Bindings

/**
 * @see ISourceManipulation
 */
/**
 * @see ISourceManipulation#rename(String, boolean, IProgressMonitor)
 */
public void rename(String newName, boolean force, IProgressMonitor monitor) throws JavaModelException {
  if (newName == null) {
    throw new IllegalArgumentException(Messages. [[#variableb8e13460]]);
  }
  IJavaElement[] elements = new IJavaElement[] {
                                                 this
                                               };
  IJavaElement[] dests = new IJavaElement[] {
                                              this.getParent()
                                            };
  String[] renamings = new String[] {
                                      newName
                                    };
  getJavaModel().rename(elements, dests, renamings, force, monitor);
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#b8e13460]]
element_nullName 
12[[#b8e13460]]
operation_nullName 
13[[#b8e13460]]
element_nullName