| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 14 | 2 | 4 | 0.989 | statement_sequence[6] |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 14 | 587 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/jarpackager/JarManifestWizardPage.java |
| 2 | 14 | 296 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/jarpackager/JarOptionsPage.java |
| ||||
IPath location = fJarPackage.getManifestLocation();
if ( !location.toString().startsWith("/")) { //$NON-NLS-1$
setErrorMessage(JarPackagerMessages.JarManifestWizardPage_error_manifestPathMustBeAbsolute);
return false;
}
IResource resource = findResource(location);
if (resource != null && resource.getType() != IResource.FILE) {
setErrorMessage(JarPackagerMessages.JarManifestWizardPage_error_manifestMustNotBeExistingContainer);
return false;
}
resource = findResource(location.removeLastSegments(1));
if (resource == null || resource.getType() == IResource.FILE) {
setErrorMessage(JarPackagerMessages.JarManifestWizardPage_error_manifestContainerDoesNotExist);
return false;
}
|
| ||||
IPath location = fJarPackage.getDescriptionLocation();
if ( !location.toString().startsWith("/")) { //$NON-NLS-1$
setErrorMessage(JarPackagerMessages.JarOptionsPage_error_descriptionMustBeAbsolute);
return false;
}
IResource resource = findResource(location);
if (resource != null && resource.getType() != IResource.FILE) {
setErrorMessage(JarPackagerMessages.JarOptionsPage_error_descriptionMustNotBeExistingContainer);
return false;
}
resource = findResource(location.removeLastSegments(1));
if (resource == null || resource.getType() == IResource.FILE) {
setErrorMessage(JarPackagerMessages.JarOptionsPage_error_descriptionContainerDoesNotExist);
return false;
}
|
| |||
IPath location = fJarPackage. [[#variable5bde0a60]]();
if ( !location.toString().startsWith("/")) { //$NON-NLS-1$
setErrorMessage(JarPackagerMessages. [[#variable63401c60]]);
return false;
}
IResource resource = findResource(location);
if (resource != null && resource.getType() != IResource.FILE) {
setErrorMessage(JarPackagerMessages. [[#variableb88d6720]]);
return false;
}
resource = findResource(location.removeLastSegments(1));
if (resource == null || resource.getType() == IResource.FILE) {
setErrorMessage(JarPackagerMessages. [[#variable5bde09e0]]);
return false;
}
|
| CloneAbstraction |
| Parameter Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#5bde0a60]] | getDescriptionLocation |
| 1 | 2 | [[#5bde0a60]] | getManifestLocation |
| 2 | 1 | [[#63401c60]] | JarOptionsPage_error_descriptionMustBeAbsolute |
| 2 | 2 | [[#63401c60]] | JarManifestWizardPage_error_manifestPathMustBeAbsolute |
| 3 | 1 | [[#b88d6720]] | JarOptionsPage_error_descriptionMustNotBeExistingContainer |
| 3 | 2 | [[#b88d6720]] | JarManifestWizardPage_error_manifestMustNotBeExistingContainer |
| 4 | 1 | [[#5bde09e0]] | JarOptionsPage_error_descriptionContainerDoesNotExist |
| 4 | 2 | [[#5bde09e0]] | JarManifestWizardPage_error_manifestContainerDoesNotExist |