CloneSet2946


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
7301.000class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
17132
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/callhierarchy/CallHierarchyImageDescriptor.java
2754
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/HierarchyLabelProvider.java
37185
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/JavaElementImageDescriptor.java
Clone Instance
1
Line Count
7
Source Line
132
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/callhierarchy/CallHierarchyImageDescriptor.java

        private ImageData getImageData(ImageDescriptor descriptor) {
                ImageData data = descriptor.getImageData(); // see bug 51965: getImageData can return null
                if (data == null) {
                        data = DEFAULT_IMAGE_DATA;
                        JavaPlugin.logErrorMessage("Image data not available: " + descriptor.toString()); //$NON-NLS-1$
                }
                return data;
        }


Clone Instance
2
Line Count
7
Source Line
54
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/HierarchyLabelProvider.java

                private ImageData getImageData(ImageDescriptor descriptor) {
                        ImageData data = descriptor.getImageData(); // see bug 51965: getImageData can return null
                        if (data == null) {
                                data = DEFAULT_IMAGE_DATA;
                                JavaPlugin.logErrorMessage("Image data not available: " + descriptor.toString()); //$NON-NLS-1$
                        }
                        return data;
                }


Clone Instance
3
Line Count
7
Source Line
185
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/JavaElementImageDescriptor.java

        private ImageData getImageData(ImageDescriptor descriptor) {
                ImageData data = descriptor.getImageData(); // see bug 51965: getImageData can return null
                if (data == null) {
                        data = DEFAULT_IMAGE_DATA;
                        JavaPlugin.logErrorMessage("Image data not available: " + descriptor.toString()); //$NON-NLS-1$
                }
                return data;
        }


Clone AbstractionParameter Count: 0Parameter Bindings

private ImageData getImageData(ImageDescriptor descriptor) {
  ImageData data = descriptor.getImageData(); // see bug 51965: getImageData can return null
  if (data == null) {
    data = DEFAULT_IMAGE_DATA;
    JavaPlugin.logErrorMessage("Image data not available: " + descriptor.toString()); //$NON-NLS-1$
  }
  return data;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None