CloneSet798


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
25230.989class_body_declarations[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
12575
plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/fix/ConvertIterableLoopOperation.java
224259
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/dialogs/OverrideMethodDialog.java
Clone Instance
1
Line Count
25
Source Line
75
Source File
plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/fix/ConvertIterableLoopOperation.java

        /**
         * Returns the supertype of the given type with the qualified name.
         * 
         * @param binding the binding of the type
         * @param name the qualified name of the supertype
         * @return the supertype, or <code>null</code>
         */
        private static ITypeBinding getSuperType( final ITypeBinding binding, final String name) {

                if (binding.isArray() || binding.isPrimitive())
                        return null;

                if (binding.getQualifiedName().startsWith(name))
                        return binding;

                final ITypeBinding type = binding.getSuperclass();
                if (type != null) {
                        final ITypeBinding result = getSuperType(type, name);
                        if (result != null)
                                return result;
                }
                final ITypeBinding[] types = binding.getInterfaces();
                for (int index = 0; index < types.length; index++) {
                        final ITypeBinding result = getSuperType(types[index], name);
                        if (result != null)
                                return result;
                }
                return null;
        }

        /** Has the element variable been assigned outside the for statement? */
        private boolean fAssigned = false;


Clone Instance
2
Line Count
24
Source Line
259
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/dialogs/OverrideMethodDialog.java

        private static ITypeBinding getSuperType( final ITypeBinding binding, final String name) {

                if (binding.isArray() || binding.isPrimitive())
                        return null;

                if (binding.getQualifiedName().startsWith(name))
                        return binding;

                final ITypeBinding type = binding.getSuperclass();
                if (type != null) {
                        final ITypeBinding result = getSuperType(type, name);
                        if (result != null)
                                return result;
                }
                final ITypeBinding[] types = binding.getInterfaces();
                for (int index = 0; index < types.length; index++) {
                        final ITypeBinding result = getSuperType(types[index], name);
                        if (result != null)
                                return result;
                }
                return null;
        }

        private CompilationUnit fUnit = null;


Clone AbstractionParameter Count: 3Parameter Bindings

/**
         * Returns the supertype of the given type with the qualified name.
         * 
         * @param binding the binding of the type
         * @param name the qualified name of the supertype
         * @return the supertype, or <code>null</code>
         */
private static ITypeBinding getSuperType( final ITypeBinding binding, final String name) {
  if (binding.isArray() || binding.isPrimitive())
    return null;
  if (binding.getQualifiedName().startsWith(name))
    return binding;
  final ITypeBinding type = binding.getSuperclass();
  if (type != null) {
    final ITypeBinding result = getSuperType(type, name);
    if (result != null)
      return result;
  }
  final ITypeBinding[] types = binding.getInterfaces();
  for (int index = 0; index < types.length; index++) {
    final ITypeBinding result = getSuperType(types[index], name);
    if (result != null)
      return result;
  }
  return null;
}

/** Has the element variable been assigned outside the for statement? */
private [[#variablec2774d60]]  [[#variablec2774d00]]= [[#variablec2774c60]];
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#c2774d60]]
boolean 
12[[#c2774d60]]
CompilationUnit 
21[[#c2774d00]]
fAssigned 
22[[#c2774d00]]
fUnit 
31[[#c2774c60]]
false 
32[[#c2774c60]]
null