CloneSet6853


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
5201.000class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
141807
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/util/Util.java
25223
plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/util/Resources.java
Clone Instance
1
Line Count
4
Source Line
1807
Source File
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/util/Util.java

        public static boolean isReadOnly(IResource resource) {
                ResourceAttributes resourceAttributes = resource.getResourceAttributes();
                if (resourceAttributes == null) return false; // not supported on this platform for this resource
                return resourceAttributes.isReadOnly();
        }


Clone Instance
2
Line Count
5
Source Line
223
Source File
plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/util/Resources.java

        public static boolean isReadOnly(IResource resource) {
                ResourceAttributes resourceAttributes = resource.getResourceAttributes();
                if (resourceAttributes == null)  // not supported on this platform for this resource 
                        return false;
                return resourceAttributes.isReadOnly();
        }


Clone AbstractionParameter Count: 0Parameter Bindings

public static boolean isReadOnly(IResource resource) {
  ResourceAttributes resourceAttributes = resource.getResourceAttributes();
  if (resourceAttributes == null) // not supported on this platform for this resource 
    return false; // not supported on this platform for this resource
  return resourceAttributes.isReadOnly();
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None