CloneSet2150


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
9230.977statement_sequence[4]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1981
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/reorg/ReadOnlyResourceFinder.java
2997
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/reorg/ReadOnlyResourceFinder.java
Clone Instance
1
Line Count
9
Source Line
81
Source File
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/reorg/ReadOnlyResourceFinder.java

                                if (Resources.isReadOnly(packResource))
                                        return true;
                                Object[] nonJava = pack.getNonJavaResources();
                                for (int i = 0; i < nonJava.length; i++) {
                                        Object object = nonJava[i];
                                        if (object instanceof IResource && hasReadOnlyResourcesAndSubResources((IResource) object))
                                                return true;
                                }
                                return hasReadOnlyResourcesAndSubResources(pack.getChildren());


Clone Instance
2
Line Count
9
Source Line
97
Source File
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/reorg/ReadOnlyResourceFinder.java

                                if (Resources.isReadOnly(pfrResource))
                                        return true;
                                Object[] nonJava1 = root.getNonJavaResources();
                                for (int i = 0; i < nonJava1.length; i++) {
                                        Object object = nonJava1[i];
                                        if (object instanceof IResource && hasReadOnlyResourcesAndSubResources((IResource) object))
                                                return true;
                                }
                                return hasReadOnlyResourcesAndSubResources(root.getChildren());


Clone AbstractionParameter Count: 3Parameter Bindings

if (Resources.isReadOnly( [[#variablea431a000]]))
  return true;
Object[]  [[#variable9a184fa0]]= [[#variable9a185360]].getNonJavaResources();
for (int i = 0; i <  [[#variable9a184fa0]].length; i++) {
  Object object = [[#variable9a184fa0]][i];
  if (object instanceof IResource && hasReadOnlyResourcesAndSubResources((IResource) object))
    return true;
}
return hasReadOnlyResourcesAndSubResources( [[#variable9a185360]].getChildren());
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#a431a000]]
pfrResource 
12[[#a431a000]]
packResource 
21[[#9a184fa0]]
nonJava1 
22[[#9a184fa0]]
nonJava 
31[[#9a185360]]
root 
32[[#9a185360]]
pack