Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
23 | 2 | 5 | 0.986 | class_body_declarations[2] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 23 | 138 | plugins/org.eclipse.jdt.debug/model/org/eclipse/jdt/internal/debug/core/breakpoints/JavaLineBreakpoint.java |
2 | 22 | 50 | plugins/org.eclipse.jdt.debug/model/org/eclipse/jdt/internal/debug/core/breakpoints/JavaTargetPatternBreakpoint.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); } |
| ||||
/** * @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); } |
| |||
/** * @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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#77b531c0]] | JavaLineBreakpoint |
1 | 2 | [[#77b531c0]] | JavaTargetPatternBreakpoint |
2 | 1 | [[#77b53140]] | typeName |
2 | 2 | [[#77b53140]] | sourceName |
3 | 1 | [[#77b53060]] | JAVA_LINE_BREAKPOINT |
3 | 2 | [[#77b53060]] | TARGET_PATTERN_BREAKPOINT |
4 | 1 | [[#77b52ca0]] | protected |
4 | 2 | [[#77b52ca0]] | public |
5 | 1 | [[#77b53020]] | addTypeNameAndHitCount |
5 | 2 | [[#77b53020]] | addSourceNameAndHitCount |