CloneSet2625


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
11230.978class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
111256
plugins/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/BreakpointUtils.java
211275
plugins/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/BreakpointUtils.java
Clone Instance
1
Line Count
11
Source Line
256
Source File
plugins/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/BreakpointUtils.java

        /**
         * Returns the method associated with the method entry
         * breakpoint.
         * 
         * @param breakpoint Java method entry breakpoint
         * @return method
         */
        public static IMethod getMethod(IJavaMethodBreakpoint breakpoint) {
                String handle = breakpoint.getMarker().getAttribute(HANDLE_ID, null);
                if (handle != null) {
                        IJavaElement je = JavaCore.create(handle);
                        if (je != null) {
                                if (je instanceof IMethod) {
                                        return (IMethod) je;
                                }
                        }
                }
                return null;
        }


Clone Instance
2
Line Count
11
Source Line
275
Source File
plugins/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/BreakpointUtils.java

        /**
         * Returns the field associated with the watchpoint.
         * 
         * @param breakpoint Java watchpoint
         * @return field
         */
        public static IField getField(IJavaWatchpoint breakpoint) {
                String handle = breakpoint.getMarker().getAttribute(HANDLE_ID, null);
                if (handle != null) {
                        IJavaElement je = JavaCore.create(handle);
                        if (je != null) {
                                if (je instanceof IField) {
                                        return (IField) je;
                                }
                        }
                }
                return null;
        }


Clone AbstractionParameter Count: 3Parameter Bindings

/**
         * Returns the method associated with the method entry
         * breakpoint.
         * 
         * @param breakpoint Java method entry breakpoint
         * @return method
         */
/**
         * Returns the field associated with the watchpoint.
         * 
         * @param breakpoint Java watchpoint
         * @return field
         */
public static [[#variable57851820]]  [[#variable57851d80]]( [[#variable57851e80]] breakpoint) {
  String handle = breakpoint.getMarker().getAttribute(HANDLE_ID, null);
  if (handle != null) {
    IJavaElement je = JavaCore.create(handle);
    if (je != null) {
      if (je instanceof [[#variable57851820]]) {
        return ( [[#variable57851820]]) je;
      }
    }
  }
  return null;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#57851820]]
IMethod 
12[[#57851820]]
IField 
21[[#57851d80]]
getMethod 
22[[#57851d80]]
getField 
31[[#57851e80]]
IJavaMethodBreakpoint 
32[[#57851e80]]
IJavaWatchpoint