CloneSet1510


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
9230.982statement_sequence[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
19313
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/nls/NLSHintHelper.java
29360
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/nls/NLSHintHelper.java
Clone Instance
1
Line Count
9
Source Line
313
Source File
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;
                                                        }
                                                }
                                        }
                                }


Clone Instance
2
Line Count
9
Source Line
360
Source File
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 IStorage) {
                                        IStorage storage = (IStorage) object;
                                        if (storage.getName().equals(resourceName)) {
                                                return storage;
                                        }
                                }
                        }
                }


Clone AbstractionParameter Count: 3Parameter Bindings

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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#b47d1240]]
IStorage 
12[[#b47d1240]]
IFile 
21[[#b47d08c0]]
storage 
22[[#b47d08c0]]
file 
31[[#b47d1220]]
storage 
32[[#b47d1220]]
packageFragment