Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
9 | 2 | 2 | 0.986 | class_body_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 9 | 163 | plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/CreateImportOperation.java |
2 | 9 | 118 | plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/CreatePackageDeclarationOperation.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; } |
| ||||
/** * 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; } |
| |||
/** * 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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#64044120]] | validatePackageName |
1 | 2 | [[#64044120]] | validateImportDeclaration |
2 | 1 | [[#64044020]] | name |
2 | 2 | [[#64044020]] | importName |