Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
9 | 2 | 3 | 0.982 | statement_sequence[2] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 9 | 313 | plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/nls/NLSHintHelper.java |
2 | 9 | 360 | plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/nls/NLSHintHelper.java |
| ||||
IPackageFragment packageFragment = root.getPackageFragment(packageName); if (packageFragment.exists()) { Object[] resources = packageFragment.isDefaultPackage() ? root.getNonJavaResources(): packageFragment.getNonJavaResources(); for (int j = 0; j < resources.length; j++) { Object object = resources[j]; if (object instanceof IFile) { IFile file = (IFile) object; if (file.getName().equals(resourceName)) { return packageFragment; } } } } |
| ||||
IPackageFragment packageFragment = root.getPackageFragment(packageName); if (packageFragment.exists()) { Object[] resources = packageFragment.isDefaultPackage() ? root.getNonJavaResources(): packageFragment.getNonJavaResources(); for (int j = 0; j < resources.length; j++) { Object object = resources[j]; if (object instanceof IStorage) { IStorage storage = (IStorage) object; if (storage.getName().equals(resourceName)) { return storage; } } } } |
| |||
IPackageFragment packageFragment = root.getPackageFragment(packageName); if (packageFragment.exists()) { Object[] resources = packageFragment.isDefaultPackage() ? root.getNonJavaResources(): packageFragment.getNonJavaResources(); for (int j = 0; j < resources.length; j++) { Object object = resources[j]; if (object instanceof [[#variableb47d1240]]) { [[#variableb47d1240]] [[#variableb47d08c0]]= ( [[#variableb47d1240]]) object; if ( [[#variableb47d08c0]].getName().equals(resourceName)) { return [[#variableb47d1220]]; } } } } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#b47d1240]] | IStorage |
1 | 2 | [[#b47d1240]] | IFile |
2 | 1 | [[#b47d08c0]] | storage |
2 | 2 | [[#b47d08c0]] | file |
3 | 1 | [[#b47d1220]] | storage |
3 | 2 | [[#b47d1220]] | packageFragment |