Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
7 | 2 | 3 | 0.982 | statement_sequence[2] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 7 | 419 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/NewJavaProjectPreferencePage.java |
2 | 7 | 428 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/NewJavaProjectPreferencePage.java |
| ||||
IPath srcPath = dmy.getFullPath().append(srcName); if (srcName.length() != 0) { status = workspace.validatePath(srcPath.toString(), IResource.FOLDER); if ( !status.isOK()) { String message = Messages.format(PreferencesMessages.NewJavaProjectPreferencePage_folders_error_invalidsrcname, status.getMessage()); updateStatus(new StatusInfo(IStatus.ERROR, message)); return; } } |
| ||||
IPath binPath = dmy.getFullPath().append(binName); if (binName.length() != 0) { status = workspace.validatePath(binPath.toString(), IResource.FOLDER); if ( !status.isOK()) { String message = Messages.format(PreferencesMessages.NewJavaProjectPreferencePage_folders_error_invalidbinname, status.getMessage()); updateStatus(new StatusInfo(IStatus.ERROR, message)); return; } } |
| |||
IPath [[#variableb29fb500]]= dmy.getFullPath().append( [[#variable64394f40]]); if ( [[#variable64394f40]].length() != 0) { status = workspace.validatePath( [[#variableb29fb500]].toString(), IResource.FOLDER); if ( !status.isOK()) { String message = Messages.format(PreferencesMessages. [[#variableb29fa3e0]], status.getMessage()); updateStatus(new StatusInfo(IStatus.ERROR, message)); return; } } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#b29fb500]] | srcPath |
1 | 2 | [[#b29fb500]] | binPath |
2 | 1 | [[#64394f40]] | srcName |
2 | 2 | [[#64394f40]] | binName |
3 | 1 | [[#b29fa3e0]] | NewJavaProjectPreferencePage_folders_error_invalidsrcname |
3 | 2 | [[#b29fa3e0]] | NewJavaProjectPreferencePage_folders_error_invalidbinname |