CloneSet1784


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
15240.957class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
11527
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/code/flow/ConditionalFlowInfo.java
21521
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/code/flow/IfFlowInfo.java
Clone Instance
1
Line Count
15
Source Line
27
Source File
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/code/flow/ConditionalFlowInfo.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);
        }


Clone Instance
2
Line Count
15
Source Line
21
Source File
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/code/flow/IfFlowInfo.java

        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);
        }


Clone AbstractionParameter Count: 4Parameter Bindings

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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#51f87a40]]
thenPart 
12[[#51f87a40]]
truePart 
21[[#51f879e0]]
elsePart 
22[[#51f879e0]]
falsePart 
31[[#51f878e0]]
merge 
32[[#51f878e0]]
mergeAccessMode 
41[[#51f87900]]
mergeSequential 
42[[#51f87900]]
mergeAccessModeSequential