Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
15 | 2 | 4 | 0.957 | class_body_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 15 | 27 | plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/code/flow/ConditionalFlowInfo.java |
2 | 15 | 21 | plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/code/flow/IfFlowInfo.java |
| ||||
public void merge(FlowInfo truePart, FlowInfo falsePart, FlowContext context) { if (truePart == null && falsePart == null) return; GenericConditionalFlowInfo cond = new GenericConditionalFlowInfo(); if (truePart != null) cond.mergeAccessMode(truePart, context); if (falsePart != null) cond.mergeAccessMode(falsePart, context); if (truePart == null || falsePart == null) cond.mergeEmptyCondition(context); mergeAccessModeSequential(cond, context); } |
| ||||
public void merge(FlowInfo thenPart, FlowInfo elsePart, FlowContext context) { if (thenPart == null && elsePart == null) return; GenericConditionalFlowInfo cond = new GenericConditionalFlowInfo(); if (thenPart != null) cond.merge(thenPart, context); if (elsePart != null) cond.merge(elsePart, context); if (thenPart == null || elsePart == null) cond.mergeEmptyCondition(context); mergeSequential(cond, context); } |
| |||
public void merge(FlowInfo [[#variable51f87a40]], FlowInfo [[#variable51f879e0]], FlowContext context) { if ( [[#variable51f87a40]]== null && [[#variable51f879e0]]== null) return; GenericConditionalFlowInfo cond = new GenericConditionalFlowInfo(); if ( [[#variable51f87a40]]!= null) cond. [[#variable51f878e0]]( [[#variable51f87a40]], context); if ( [[#variable51f879e0]]!= null) cond. [[#variable51f878e0]]( [[#variable51f879e0]], context); if ( [[#variable51f87a40]]== null || [[#variable51f879e0]]== null) cond.mergeEmptyCondition(context); [[#variable51f87900]](cond, context); } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#51f87a40]] | thenPart |
1 | 2 | [[#51f87a40]] | truePart |
2 | 1 | [[#51f879e0]] | elsePart |
2 | 2 | [[#51f879e0]] | falsePart |
3 | 1 | [[#51f878e0]] | merge |
3 | 2 | [[#51f878e0]] | mergeAccessMode |
4 | 1 | [[#51f87900]] | mergeSequential |
4 | 2 | [[#51f87900]] | mergeAccessModeSequential |