Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
6 | 3 | 4 | 0.984 | statement_sequence[2] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 6 | 220 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/wizards/NewPackageWizardPage.java |
2 | 6 | 1384 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/wizards/NewTypeWizardPage.java |
3 | 6 | 1561 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/wizards/NewTypeWizardPage.java |
| ||||
IStatus val = JavaConventions.validatePackageName(packName); if (val.getSeverity() == IStatus.ERROR) { status.setError(Messages.format(NewWizardMessages.NewPackageWizardPage_error_InvalidPackageName, val.getMessage())); return status; } else if (val.getSeverity() == IStatus.WARNING) { status.setWarning(Messages.format(NewWizardMessages.NewPackageWizardPage_warning_DiscouragedPackageName, val.getMessage())); } |
| ||||
IStatus val = JavaConventions.validatePackageName(packName); if (val.getSeverity() == IStatus.ERROR) { status.setError(Messages.format(NewWizardMessages.NewTypeWizardPage_error_InvalidPackageName, val.getMessage())); return status; } else if (val.getSeverity() == IStatus.WARNING) { status.setWarning(Messages.format(NewWizardMessages.NewTypeWizardPage_warning_DiscouragedPackageName, val.getMessage())); // continue } |
| ||||
IStatus val = JavaConventions.validateJavaTypeName(typeName); if (val.getSeverity() == IStatus.ERROR) { status.setError(Messages.format(NewWizardMessages.NewTypeWizardPage_error_InvalidTypeName, val.getMessage())); return status; } else if (val.getSeverity() == IStatus.WARNING) { status.setWarning(Messages.format(NewWizardMessages.NewTypeWizardPage_warning_TypeNameDiscouraged, val.getMessage())); // continue checking } |
| |||
IStatus val = JavaConventions. [[#variable51379880]]( [[#variable51379900]]); if (val.getSeverity() == IStatus.ERROR) { status.setError(Messages.format(NewWizardMessages. [[#variable51378980]], val.getMessage())); return status; } else if (val.getSeverity() == IStatus.WARNING) { status.setWarning(Messages.format(NewWizardMessages. [[#variable51379820]], val.getMessage())); // continue // continue checking } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#51379880]] | validatePackageName |
1 | 2 | [[#51379880]] | validateJavaTypeName |
1 | 3 | [[#51379880]] | validatePackageName |
2 | 1 | [[#51379900]] | packName |
2 | 2 | [[#51379900]] | typeName |
2 | 3 | [[#51379900]] | packName |
3 | 1 | [[#51378980]] | NewTypeWizardPage_error_InvalidPackageName |
3 | 2 | [[#51378980]] | NewTypeWizardPage_error_InvalidTypeName |
3 | 3 | [[#51378980]] | NewPackageWizardPage_error_InvalidPackageName |
4 | 1 | [[#51379820]] | NewTypeWizardPage_warning_DiscouragedPackageName |
4 | 2 | [[#51379820]] | NewTypeWizardPage_warning_TypeNameDiscouraged |
4 | 3 | [[#51379820]] | NewPackageWizardPage_warning_DiscouragedPackageName |