CloneSet1246


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
6340.984statement_sequence[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
16220
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/wizards/NewPackageWizardPage.java
261384
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/wizards/NewTypeWizardPage.java
361561
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/wizards/NewTypeWizardPage.java
Clone Instance
1
Line Count
6
Source Line
220
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/wizards/NewPackageWizardPage.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()));
                               }


Clone Instance
2
Line Count
6
Source Line
1384
Source File
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.NewTypeWizardPage_error_InvalidPackageName, val.getMessage()));
                                return status;
                        }
                        else   if (val.getSeverity() == IStatus.WARNING) {
                                status.setWarning(Messages.format(NewWizardMessages.NewTypeWizardPage_warning_DiscouragedPackageName, val.getMessage()));
                                // continue
                               }


Clone Instance
3
Line Count
6
Source Line
1561
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/wizards/NewTypeWizardPage.java

                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
                       }


Clone AbstractionParameter Count: 4Parameter Bindings

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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#51379880]]
validatePackageName 
12[[#51379880]]
validateJavaTypeName 
13[[#51379880]]
validatePackageName 
21[[#51379900]]
packName 
22[[#51379900]]
typeName 
23[[#51379900]]
packName 
31[[#51378980]]
NewTypeWizardPage_error_InvalidPackageName 
32[[#51378980]]
NewTypeWizardPage_error_InvalidTypeName 
33[[#51378980]]
NewPackageWizardPage_error_InvalidPackageName 
41[[#51379820]]
NewTypeWizardPage_warning_DiscouragedPackageName 
42[[#51379820]]
NewTypeWizardPage_warning_TypeNameDiscouraged 
43[[#51379820]]
NewPackageWizardPage_warning_DiscouragedPackageName