CloneSet225


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
18440.989class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
118142
plugins/org.eclipse.jdt.debug/model/org/eclipse/jdt/internal/debug/core/model/JDIClassType.java
218165
plugins/org.eclipse.jdt.debug/model/org/eclipse/jdt/internal/debug/core/model/JDIClassType.java
31865
plugins/org.eclipse.jdt.debug/model/org/eclipse/jdt/internal/debug/core/model/JDIInterfaceType.java
41888
plugins/org.eclipse.jdt.debug/model/org/eclipse/jdt/internal/debug/core/model/JDIInterfaceType.java
Clone Instance
1
Line Count
18
Source Line
142
Source File
plugins/org.eclipse.jdt.debug/model/org/eclipse/jdt/internal/debug/core/model/JDIClassType.java

        /* (non-Javadoc)
         * @see org.eclipse.jdt.debug.core.IJavaClassType#getAllInterfaces()
         */
        public IJavaInterfaceType[] getAllInterfaces() throws DebugException {
                try {
                        List interfaceList = ((ClassType) getUnderlyingType()).allInterfaces();
                        List javaInterfaceTypeList = new ArrayList(interfaceList.size());
                        Iterator iterator = interfaceList.iterator();
                        while (iterator.hasNext()) {
                                InterfaceType interfaceType = (InterfaceType) iterator.next();
                                if (interfaceType != null) {
                                        javaInterfaceTypeList.add(JDIType.createType(getJavaDebugTarget(), interfaceType));
                                }
                        }
                        IJavaInterfaceType[] javaInterfaceTypeArray = new IJavaInterfaceType[javaInterfaceTypeList.size()];
                        javaInterfaceTypeArray = (IJavaInterfaceType[]) javaInterfaceTypeList.toArray(javaInterfaceTypeArray);
                        return javaInterfaceTypeArray;
                } catch (RuntimeException re) {
                        targetRequestFailed(MessageFormat.format(JDIDebugModelMessages.JDIClassType_exception_while_retrieving_superclass, new String[] {
                                                                                                                                                         re.toString()
                                                                                                                                                        } ),              re);
                  }
                return new IJavaInterfaceType[0];
        }


Clone Instance
2
Line Count
18
Source Line
165
Source File
plugins/org.eclipse.jdt.debug/model/org/eclipse/jdt/internal/debug/core/model/JDIClassType.java

        /* (non-Javadoc)
         * @see org.eclipse.jdt.debug.core.IJavaClassType#getInterfaces()
         */
        public IJavaInterfaceType[] getInterfaces() throws DebugException {
                try {
                        List interfaceList = ((ClassType) getUnderlyingType()).interfaces();
                        List javaInterfaceTypeList = new ArrayList(interfaceList.size());
                        Iterator iterator = interfaceList.iterator();
                        while (iterator.hasNext()) {
                                InterfaceType interfaceType = (InterfaceType) iterator.next();
                                if (interfaceType != null) {
                                        javaInterfaceTypeList.add(JDIType.createType(getJavaDebugTarget(), interfaceType));
                                }
                        }
                        IJavaInterfaceType[] javaInterfaceTypeArray = new IJavaInterfaceType[javaInterfaceTypeList.size()];
                        javaInterfaceTypeArray = (IJavaInterfaceType[]) javaInterfaceTypeList.toArray(javaInterfaceTypeArray);
                        return javaInterfaceTypeArray;
                } catch (RuntimeException re) {
                        targetRequestFailed(MessageFormat.format(JDIDebugModelMessages.JDIClassType_exception_while_retrieving_superclass, new String[] {
                                                                                                                                                         re.toString()
                                                                                                                                                        } ),              re);
                  }
                return new IJavaInterfaceType[0];
        }


Clone Instance
3
Line Count
18
Source Line
65
Source File
plugins/org.eclipse.jdt.debug/model/org/eclipse/jdt/internal/debug/core/model/JDIInterfaceType.java

        /* (non-Javadoc)
         * @see org.eclipse.jdt.debug.core.IJavaInterfaceType#getSubInterfaces()
         */
        public IJavaInterfaceType[] getSubInterfaces() throws DebugException {
                try {
                        List subList = ((InterfaceType) getUnderlyingType()).subinterfaces();
                        List javaInterfaceTypeList = new ArrayList(subList.size());
                        Iterator iterator = subList.iterator();
                        while (iterator.hasNext()) {
                                InterfaceType interfaceType = (InterfaceType) iterator.next();
                                if (interfaceType != null) {
                                        javaInterfaceTypeList.add(JDIType.createType(getJavaDebugTarget(), interfaceType));
                                }
                        }
                        IJavaInterfaceType[] javaInterfaceTypeArray = new IJavaInterfaceType[javaInterfaceTypeList.size()];
                        javaInterfaceTypeArray = (IJavaInterfaceType[]) javaInterfaceTypeList.toArray(javaInterfaceTypeArray);
                        return javaInterfaceTypeArray;
                } catch (RuntimeException re) {
                        targetRequestFailed(MessageFormat.format(JDIDebugModelMessages.JDIClassType_exception_while_retrieving_superclass, new String[] {
                                                                                                                                                         re.toString()
                                                                                                                                                        } ),              re);
                  }
                return new IJavaInterfaceType[0];
        }


Clone Instance
4
Line Count
18
Source Line
88
Source File
plugins/org.eclipse.jdt.debug/model/org/eclipse/jdt/internal/debug/core/model/JDIInterfaceType.java

        /* (non-Javadoc)
         * @see org.eclipse.jdt.debug.core.IJavaInterfaceType#getSuperInterfaces()
         */
        public IJavaInterfaceType[] getSuperInterfaces() throws DebugException {
                try {
                        List superList = ((InterfaceType) getUnderlyingType()).superinterfaces();
                        List javaInterfaceTypeList = new ArrayList(superList.size());
                        Iterator iterator = superList.iterator();
                        while (iterator.hasNext()) {
                                InterfaceType interfaceType = (InterfaceType) iterator.next();
                                if (interfaceType != null) {
                                        javaInterfaceTypeList.add(JDIType.createType(getJavaDebugTarget(), interfaceType));
                                }
                        }
                        IJavaInterfaceType[] javaInterfaceTypeArray = new IJavaInterfaceType[javaInterfaceTypeList.size()];
                        javaInterfaceTypeArray = (IJavaInterfaceType[]) javaInterfaceTypeList.toArray(javaInterfaceTypeArray);
                        return javaInterfaceTypeArray;
                } catch (RuntimeException re) {
                        targetRequestFailed(MessageFormat.format(JDIDebugModelMessages.JDIClassType_exception_while_retrieving_superclass, new String[] {
                                                                                                                                                         re.toString()
                                                                                                                                                        } ),              re);
                  }
                return new IJavaInterfaceType[0];
        }


Clone AbstractionParameter Count: 4Parameter Bindings

/* (non-Javadoc)
         * @see org.eclipse.jdt.debug.core.IJavaInterfaceType#getSubInterfaces()
         */
/* (non-Javadoc)
         * @see org.eclipse.jdt.debug.core.IJavaInterfaceType#getSuperInterfaces()
         */
/* (non-Javadoc)
         * @see org.eclipse.jdt.debug.core.IJavaClassType#getAllInterfaces()
         */
/* (non-Javadoc)
         * @see org.eclipse.jdt.debug.core.IJavaClassType#getInterfaces()
         */
public IJavaInterfaceType[]  [[#variable56f3dea0]]() throws DebugException {
  try {
    List  [[#variable56f3de20]]= (( [[#variable56f3dda0]]) getUnderlyingType()). [[#variable56f3dd40]]();
    List javaInterfaceTypeList = new ArrayList( [[#variable56f3de20]].size());
    Iterator iterator = [[#variable56f3de20]].iterator();
    while (iterator.hasNext()) {
      InterfaceType interfaceType = (InterfaceType) iterator.next();
      if (interfaceType != null) {
        javaInterfaceTypeList.add(JDIType.createType(getJavaDebugTarget(), interfaceType));
      }
    }
    IJavaInterfaceType[] javaInterfaceTypeArray = new IJavaInterfaceType[javaInterfaceTypeList.size()];
    javaInterfaceTypeArray = (IJavaInterfaceType[]) javaInterfaceTypeList.toArray(javaInterfaceTypeArray);
    return javaInterfaceTypeArray;
  }
  catch (RuntimeException re) {
    targetRequestFailed(MessageFormat.format(JDIDebugModelMessages.JDIClassType_exception_while_retrieving_superclass, new String[] {
                                                                                                                                      re.toString()
                                                                                                                                    } ), re);
  }
  return new IJavaInterfaceType[0];
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#56f3dea0]]
getSubInterfaces 
12[[#56f3dea0]]
getSuperInterfaces 
13[[#56f3dea0]]
getAllInterfaces 
14[[#56f3dea0]]
getInterfaces 
21[[#56f3de20]]
subList 
22[[#56f3de20]]
superList 
23[[#56f3de20]]
interfaceList 
24[[#56f3de20]]
interfaceList 
31[[#56f3dda0]]
InterfaceType 
32[[#56f3dda0]]
InterfaceType 
33[[#56f3dda0]]
ClassType 
34[[#56f3dda0]]
ClassType 
41[[#56f3dd40]]
subinterfaces 
42[[#56f3dd40]]
superinterfaces 
43[[#56f3dd40]]
allInterfaces 
44[[#56f3dd40]]
interfaces