CloneSet2986


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
9220.986class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
19163
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/CreateImportOperation.java
29118
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/CreatePackageDeclarationOperation.java
Clone Instance
1
Line Count
9
Source Line
163
Source File
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/CreateImportOperation.java

/**
 * Possible failures: <ul>
 *  <li>NO_ELEMENTS_TO_PROCESS - the compilation unit supplied to the operation is
 *              <code>null</code>.
 *  <li>INVALID_NAME - not a valid import declaration name.
 * </ul>
 * @see IJavaModelStatus
 * @see JavaConventions
 */
public IJavaModelStatus verify() {
        IJavaModelStatus status = super.verify();
        if ( !status.isOK()) {
                return status;
        }
        if (JavaConventions.validateImportDeclaration(this.importName).getSeverity() == IStatus.ERROR) {
                return new JavaModelStatus(IJavaModelStatusConstants.INVALID_NAME, this.importName);
        }
        return JavaModelStatus.VERIFIED_OK;
}


Clone Instance
2
Line Count
9
Source Line
118
Source File
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/CreatePackageDeclarationOperation.java

/**
 * Possible failures: <ul>
 *  <li>NO_ELEMENTS_TO_PROCESS - no compilation unit was supplied to the operation 
 *  <li>INVALID_NAME - a name supplied to the operation was not a valid
 *              package declaration name.
 * </ul>
 * @see IJavaModelStatus
 * @see JavaConventions
 */
public IJavaModelStatus verify() {
        IJavaModelStatus status = super.verify();
        if ( !status.isOK()) {
                return status;
        }
        if (JavaConventions.validatePackageName(this.name).getSeverity() == IStatus.ERROR) {
                return new JavaModelStatus(IJavaModelStatusConstants.INVALID_NAME, this.name);
        }
        return JavaModelStatus.VERIFIED_OK;
}


Clone AbstractionParameter Count: 2Parameter Bindings

/**
 * Possible failures: <ul>
 *  <li>NO_ELEMENTS_TO_PROCESS - no compilation unit was supplied to the operation 
 *  <li>INVALID_NAME - a name supplied to the operation was not a valid
 *              package declaration name.
 * </ul>
 * @see IJavaModelStatus
 * @see JavaConventions
 */
/**
 * Possible failures: <ul>
 *  <li>NO_ELEMENTS_TO_PROCESS - the compilation unit supplied to the operation is
 *              <code>null</code>.
 *  <li>INVALID_NAME - not a valid import declaration name.
 * </ul>
 * @see IJavaModelStatus
 * @see JavaConventions
 */
public IJavaModelStatus verify() {
  IJavaModelStatus status = super.verify();
  if ( !status.isOK()) {
    return status;
  }
  if (JavaConventions. [[#variable64044120]](this. [[#variable64044020]]).getSeverity() == IStatus.ERROR) {
    return new JavaModelStatus(IJavaModelStatusConstants.INVALID_NAME, this. [[#variable64044020]]);
  }
  return JavaModelStatus.VERIFIED_OK;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#64044120]]
validatePackageName 
12[[#64044120]]
validateImportDeclaration 
21[[#64044020]]
name 
22[[#64044020]]
importName