CloneSet1051


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
9450.976class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
19467
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/viewsupport/JavaElementImageProvider.java
29485
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/viewsupport/JavaElementImageProvider.java
39503
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/viewsupport/JavaElementImageProvider.java
49521
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/viewsupport/JavaElementImageProvider.java
Clone Instance
1
Line Count
9
Source Line
467
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/viewsupport/JavaElementImageProvider.java

        private static ImageDescriptor getInnerClassImageDescriptor(boolean isInInterfaceOrAnnotation, int flags) {
                if (Flags.isPublic(flags) || isInInterfaceOrAnnotation)
                        return JavaPluginImages.DESC_OBJS_INNER_CLASS_PUBLIC;
                else if (Flags.isPrivate(flags))
                        return JavaPluginImages.DESC_OBJS_INNER_CLASS_PRIVATE;
                     else
                     if (Flags.isProtected(flags))
                        return JavaPluginImages.DESC_OBJS_INNER_CLASS_PROTECTED;
                     else
                        return JavaPluginImages.DESC_OBJS_INNER_CLASS_DEFAULT;
        }


Clone Instance
2
Line Count
9
Source Line
485
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/viewsupport/JavaElementImageProvider.java

        private static ImageDescriptor getInnerEnumImageDescriptor(boolean isInInterfaceOrAnnotation, int flags) {
                if (Flags.isPublic(flags) || isInInterfaceOrAnnotation)
                        return JavaPluginImages.DESC_OBJS_ENUM;
                else if (Flags.isPrivate(flags))
                        return JavaPluginImages.DESC_OBJS_ENUM_PRIVATE;
                     else
                     if (Flags.isProtected(flags))
                        return JavaPluginImages.DESC_OBJS_ENUM_PROTECTED;
                     else
                        return JavaPluginImages.DESC_OBJS_ENUM_DEFAULT;
        }


Clone Instance
3
Line Count
9
Source Line
503
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/viewsupport/JavaElementImageProvider.java

        private static ImageDescriptor getInnerAnnotationImageDescriptor(boolean isInInterfaceOrAnnotation, int flags) {
                if (Flags.isPublic(flags) || isInInterfaceOrAnnotation)
                        return JavaPluginImages.DESC_OBJS_ANNOTATION;
                else if (Flags.isPrivate(flags))
                        return JavaPluginImages.DESC_OBJS_ANNOTATION_PRIVATE;
                     else
                     if (Flags.isProtected(flags))
                        return JavaPluginImages.DESC_OBJS_ANNOTATION_PROTECTED;
                     else
                        return JavaPluginImages.DESC_OBJS_ANNOTATION_DEFAULT;
        }


Clone Instance
4
Line Count
9
Source Line
521
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/viewsupport/JavaElementImageProvider.java

        private static ImageDescriptor getInnerInterfaceImageDescriptor(boolean isInInterfaceOrAnnotation, int flags) {
                if (Flags.isPublic(flags) || isInInterfaceOrAnnotation)
                        return JavaPluginImages.DESC_OBJS_INNER_INTERFACE_PUBLIC;
                else if (Flags.isPrivate(flags))
                        return JavaPluginImages.DESC_OBJS_INNER_INTERFACE_PRIVATE;
                     else
                     if (Flags.isProtected(flags))
                        return JavaPluginImages.DESC_OBJS_INNER_INTERFACE_PROTECTED;
                     else
                        return JavaPluginImages.DESC_OBJS_INTERFACE_DEFAULT;
        }


Clone AbstractionParameter Count: 5Parameter Bindings

private static ImageDescriptor  [[#variable4ed1a500]](boolean isInInterfaceOrAnnotation, int flags) {
  if (Flags.isPublic(flags) || isInInterfaceOrAnnotation)
    return JavaPluginImages. [[#variable4ed1a460]];
  else
    if (Flags.isPrivate(flags))
      return JavaPluginImages. [[#variable4ed1a3e0]];
    else
      if (Flags.isProtected(flags))
        return JavaPluginImages. [[#variable4ed1a360]];
      else
        return JavaPluginImages. [[#variable4ed1a2a0]];
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#4ed1a500]]
getInnerClassImageDescriptor 
12[[#4ed1a500]]
getInnerEnumImageDescriptor 
13[[#4ed1a500]]
getInnerAnnotationImageDescriptor 
14[[#4ed1a500]]
getInnerInterfaceImageDescriptor 
21[[#4ed1a460]]
DESC_OBJS_INNER_CLASS_PUBLIC 
22[[#4ed1a460]]
DESC_OBJS_ENUM 
23[[#4ed1a460]]
DESC_OBJS_ANNOTATION 
24[[#4ed1a460]]
DESC_OBJS_INNER_INTERFACE_PUBLIC 
31[[#4ed1a3e0]]
DESC_OBJS_INNER_CLASS_PRIVATE 
32[[#4ed1a3e0]]
DESC_OBJS_ENUM_PRIVATE 
33[[#4ed1a3e0]]
DESC_OBJS_ANNOTATION_PRIVATE 
34[[#4ed1a3e0]]
DESC_OBJS_INNER_INTERFACE_PRIVATE 
41[[#4ed1a360]]
DESC_OBJS_INNER_CLASS_PROTECTED 
42[[#4ed1a360]]
DESC_OBJS_ENUM_PROTECTED 
43[[#4ed1a360]]
DESC_OBJS_ANNOTATION_PROTECTED 
44[[#4ed1a360]]
DESC_OBJS_INNER_INTERFACE_PROTECTED 
51[[#4ed1a2a0]]
DESC_OBJS_INNER_CLASS_DEFAULT 
52[[#4ed1a2a0]]
DESC_OBJS_ENUM_DEFAULT 
53[[#4ed1a2a0]]
DESC_OBJS_ANNOTATION_DEFAULT 
54[[#4ed1a2a0]]
DESC_OBJS_INTERFACE_DEFAULT