CloneSet912


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
20260.968class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
120325
plugins/org.eclipse.jdt.debug/model/org/eclipse/jdt/internal/debug/core/logicalstructures/JavaLogicalStructure.java
220143
plugins/org.eclipse.jdt.debug/model/org/eclipse/jdt/internal/debug/core/logicalstructures/LogicalObjectStructureInterfaceType.java
Clone Instance
1
Line Count
20
Source Line
325
Source File
plugins/org.eclipse.jdt.debug/model/org/eclipse/jdt/internal/debug/core/logicalstructures/JavaLogicalStructure.java

        /**
         * Return the current stack frame context, or a valid stack frame for the given value.
         */
        private IJavaStackFrame getStackFrame(IValue value) throws CoreException {
                IStatusHandler handler = getStackFrameProvider();
                if (handler != null) {
                        IJavaStackFrame stackFrame = (IJavaStackFrame) handler.handleStatus(fgNeedStackFrame, value);
                        if (stackFrame != null) {
                                return stackFrame;
                        }
                }
                IDebugTarget target = value.getDebugTarget();
                IJavaDebugTarget javaTarget = (IJavaDebugTarget) target.getAdapter(IJavaDebugTarget.class );
                if (javaTarget != null) {
                        IThread[] threads = javaTarget.getThreads();
                        for (int i = 0; i < threads.length; i++) {
                                IThread thread = threads[i];
                                if (thread.isSuspended()) {
                                        return (IJavaStackFrame) thread.getTopStackFrame();
                                }
                        }
                }
                return null;
        }


Clone Instance
2
Line Count
20
Source Line
143
Source File
plugins/org.eclipse.jdt.debug/model/org/eclipse/jdt/internal/debug/core/logicalstructures/LogicalObjectStructureInterfaceType.java

        private IJavaThread getThread(IValue value) throws CoreException {
                IStatusHandler handler = getThreadProvider();
                if (handler != null) {
                        IJavaThread thread = (IJavaThread) handler.handleStatus(fgNeedThread, value);
                        if (thread != null) {
                                return thread;
                        }
                }
                IDebugTarget target = value.getDebugTarget();
                IJavaDebugTarget javaTarget = (IJavaDebugTarget) target.getAdapter(IJavaDebugTarget.class );
                if (javaTarget != null) {
                        IThread[] threads = javaTarget.getThreads();
                        for (int i = 0; i < threads.length; i++) {
                                IThread thread = threads[i];
                                if (thread.isSuspended()) {
                                        return (IJavaThread) thread;
                                }
                        }
                }
                return null;
        }


Clone AbstractionParameter Count: 6Parameter Bindings

/**
         * Return the current stack frame context, or a valid stack frame for the given value.
         */
private [[#variable59c49020]]  [[#variable59c48f80]](IValue value) throws CoreException {
  IStatusHandler handler = [[#variable59c48f20]]();
  if (handler != null) {
     [[#variable59c49020]]  [[#variable59c48e80]]= ( [[#variable59c49020]]) handler.handleStatus( [[#variable59c48de0]], value);
    if ( [[#variable59c48e80]]!= null) {
      return [[#variable59c48e80]];
    }
  }
  IDebugTarget target = value.getDebugTarget();
  IJavaDebugTarget javaTarget = (IJavaDebugTarget) target.getAdapter(IJavaDebugTarget.class );
  if (javaTarget != null) {
    IThread[] threads = javaTarget.getThreads();
    for (int i = 0; i < threads.length; i++) {
      IThread thread = threads[i];
      if (thread.isSuspended()) {
        return ( [[#variable59c49020]])  [[#variable59c48d40]];
      }
    }
  }
  return null;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#59c49020]]
IJavaThread 
12[[#59c49020]]
IJavaStackFrame 
21[[#59c48f80]]
getThread 
22[[#59c48f80]]
getStackFrame 
31[[#59c48f20]]
getThreadProvider 
32[[#59c48f20]]
getStackFrameProvider 
41[[#59c48e80]]
thread 
42[[#59c48e80]]
stackFrame 
51[[#59c48de0]]
fgNeedThread 
52[[#59c48de0]]
fgNeedStackFrame 
61[[#59c48d40]]
thread 
62[[#59c48d40]]
thread.getTopStackFrame()