| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 8 | 3 | 1 | 0.997 | class_body_declaration |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 8 | 1135 | plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/CompilationUnit.java |
| 2 | 8 | 418 | plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/PackageFragment.java |
| 3 | 8 | 256 | plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/SourceRefElement.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);
}
|
| ||||
/**
* @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);
}
|
| ||||
/**
* @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);
}
|
| |||
/**
* @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 Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#b8e13460]] | element_nullName |
| 1 | 2 | [[#b8e13460]] | operation_nullName |
| 1 | 3 | [[#b8e13460]] | element_nullName |