CloneSet525


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
23250.986class_body_declarations[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
123138
plugins/org.eclipse.jdt.debug/model/org/eclipse/jdt/internal/debug/core/breakpoints/JavaLineBreakpoint.java
22250
plugins/org.eclipse.jdt.debug/model/org/eclipse/jdt/internal/debug/core/breakpoints/JavaTargetPatternBreakpoint.java
Clone Instance
1
Line Count
23
Source Line
138
Source File
plugins/org.eclipse.jdt.debug/model/org/eclipse/jdt/internal/debug/core/breakpoints/JavaLineBreakpoint.java

        /**
         * @see JDIDebugModel#createLineBreakpoint(IResource, String, int, int, int, int, boolean, Map)
         */
        public JavaLineBreakpoint(IResource resource, String typeName, int lineNumber, int charStart, int charEnd, int hitCount, boolean add, Map attributes) throws DebugException {
                this(resource, typeName, lineNumber, charStart, charEnd, hitCount, add, attributes, JAVA_LINE_BREAKPOINT);
        }

        protected JavaLineBreakpoint( final IResource resource, final String typeName, final int lineNumber, final int charStart, final int charEnd, final int hitCount, final boolean add, final Map attributes, final String markerType) throws DebugException {
                IWorkspaceRunnable wr = new IWorkspaceRunnable() {
                         public void run(IProgressMonitor monitor) throws CoreException {

                                 // create the marker
                                 setMarker(resource.createMarker(markerType));

                                 // add attributes
                                 addLineBreakpointAttributes(attributes, getModelIdentifier(), true, lineNumber, charStart, charEnd);
                                 addTypeNameAndHitCount(attributes, typeName, hitCount);
                                 // set attributes
                                 attributes.put(SUSPEND_POLICY, new Integer(getDefaultSuspendPolicy()));
                                 ensureMarker().setAttributes(attributes);

                                 // add to breakpoint manager if requested
                                 register(add);
                         }
                                        };
                run(getMarkerRule(resource), wr);
        }


Clone Instance
2
Line Count
22
Source Line
50
Source File
plugins/org.eclipse.jdt.debug/model/org/eclipse/jdt/internal/debug/core/breakpoints/JavaTargetPatternBreakpoint.java

        /**
         * @see JDIDebugModel#createTargetPatternBreakpoint(IResource, String, int, int, int, int, boolean, Map)
         */
        public JavaTargetPatternBreakpoint(IResource resource, String sourceName, int lineNumber, int charStart, int charEnd, int hitCount, boolean add, Map attributes) throws DebugException {
                this(resource, sourceName, lineNumber, charStart, charEnd, hitCount, add, attributes, TARGET_PATTERN_BREAKPOINT);
        }

        public JavaTargetPatternBreakpoint( final IResource resource, final String sourceName, final int lineNumber, final int charStart, final int charEnd, final int hitCount, final boolean add, final Map attributes, final String markerType) throws DebugException {
                IWorkspaceRunnable wr = new IWorkspaceRunnable() {
                         public void run(IProgressMonitor monitor) throws CoreException {

                                 // create the marker
                                 setMarker(resource.createMarker(markerType));

                                 // add attributes
                                 addLineBreakpointAttributes(attributes, getModelIdentifier(), true, lineNumber, charStart, charEnd);
                                 addSourceNameAndHitCount(attributes, sourceName, hitCount);
                                 attributes.put(SUSPEND_POLICY, new Integer(getDefaultSuspendPolicy()));
                                 // set attributes
                                 ensureMarker().setAttributes(attributes);

                                 register(add);
                         }
                                        };
                run(getMarkerRule(resource), wr);
        }


Clone AbstractionParameter Count: 5Parameter Bindings

/**
         * @see JDIDebugModel#createLineBreakpoint(IResource, String, int, int, int, int, boolean, Map)
         */
/**
         * @see JDIDebugModel#createTargetPatternBreakpoint(IResource, String, int, int, int, int, boolean, Map)
         */
public [[#variable77b531c0]](IResource resource, String  [[#variable77b53140]], int lineNumber, int charStart, int charEnd, int hitCount, boolean add, Map attributes) throws DebugException {
  this(resource,  [[#variable77b53140]], lineNumber, charStart, charEnd, hitCount, add, attributes,  [[#variable77b53060]]);
}

 [[#variable77b52ca0]] [[#variable77b531c0]]( final IResource resource, final String  [[#variable77b53140]], final int lineNumber, final int charStart, final int charEnd, final int hitCount, final boolean add, final Map attributes, final String markerType) throws DebugException {
  IWorkspaceRunnable wr = new IWorkspaceRunnable() {
                            public void run(IProgressMonitor monitor) throws CoreException {
                              // create the marker
                              setMarker(resource.createMarker(markerType));
                              // add attributes
                              addLineBreakpointAttributes(attributes, getModelIdentifier(), true, lineNumber, charStart, charEnd);
                               [[#variable77b53020]](attributes,  [[#variable77b53140]], hitCount);
                              // set attributes
                              attributes.put(SUSPEND_POLICY, new Integer(getDefaultSuspendPolicy()));
                              // set attributes
                              ensureMarker().setAttributes(attributes);
                              // add to breakpoint manager if requested
                              register(add);
                            }
                          };
  run(getMarkerRule(resource), wr);
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#77b531c0]]
JavaLineBreakpoint 
12[[#77b531c0]]
JavaTargetPatternBreakpoint 
21[[#77b53140]]
typeName 
22[[#77b53140]]
sourceName 
31[[#77b53060]]
JAVA_LINE_BREAKPOINT 
32[[#77b53060]]
TARGET_PATTERN_BREAKPOINT 
41[[#77b52ca0]]
protected 
42[[#77b52ca0]]
public 
51[[#77b53020]]
addTypeNameAndHitCount 
52[[#77b53020]]
addSourceNameAndHitCount