CloneSet2088


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
8210.996statement_sequence[3]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1868
plugins/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/breakpoints/AddClassPrepareBreakpointAction.java
29107
plugins/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/breakpoints/AddExceptionAction.java
Clone Instance
1
Line Count
8
Source Line
68
Source File
plugins/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/breakpoints/AddClassPrepareBreakpointAction.java

                    IBreakpoint[] breakpoints = DebugPlugin.getDefault().getBreakpointManager().getBreakpoints(JDIDebugModel.getPluginIdentifier());
                    boolean exists = false;
                    for (int j = 0; j < breakpoints.length; j++) {
                        IJavaBreakpoint breakpoint = (IJavaBreakpoint) breakpoints[j];
                        if (breakpoint instanceof IJavaClassPrepareBreakpoint) {
                            if (breakpoint.getTypeName().equals(type.getFullyQualifiedName())) {
                                exists = true;
                                break;
                            }
                        }
                    }


Clone Instance
2
Line Count
9
Source Line
107
Source File
plugins/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/breakpoints/AddExceptionAction.java

                IBreakpoint[] breakpoints = DebugPlugin.getDefault().getBreakpointManager().getBreakpoints(
                                                JDIDebugModel.getPluginIdentifier()                       );
                boolean exists = false;
                for (int j = 0; j < breakpoints.length; j++) {
                        IJavaBreakpoint breakpoint = (IJavaBreakpoint) breakpoints[j];
                        if (breakpoint instanceof IJavaExceptionBreakpoint) {
                                if (breakpoint.getTypeName().equals(type.getFullyQualifiedName())) {
                                        exists = true;
                                        break;
                                }
                        }
                }


Clone AbstractionParameter Count: 1Parameter Bindings

IBreakpoint[] breakpoints = DebugPlugin.getDefault().getBreakpointManager().getBreakpoints(JDIDebugModel.getPluginIdentifier());
boolean exists = false;
for (int j = 0; j < breakpoints.length; j++) {
  IJavaBreakpoint breakpoint = (IJavaBreakpoint) breakpoints[j];
  if (breakpoint instanceof [[#variable52b67580]]) {
    if (breakpoint.getTypeName().equals(type.getFullyQualifiedName())) {
      exists = true;
      break;
    }
  }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#52b67580]]
IJavaClassPrepareBreakpoint 
12[[#52b67580]]
IJavaExceptionBreakpoint