CloneSet6147


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
8240.958class_body_declarations[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
18195
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/flow/ConditionalFlowInfo.java
210206
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/flow/ConditionalFlowInfo.java
Clone Instance
1
Line Count
8
Source Line
195
Source File
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/flow/ConditionalFlowInfo.java

public UnconditionalFlowInfo unconditionalCopy() {
        return initsWhenTrue.unconditionalCopy().
                        mergedWith(initsWhenFalse.unconditionalInits());
}

public UnconditionalFlowInfo unconditionalFieldLessCopy() {
        return initsWhenTrue.unconditionalFieldLessCopy().
                mergedWith(initsWhenFalse.unconditionalFieldLessCopy());
        // should never happen, hence suboptimal does not hurt
}


Clone Instance
2
Line Count
10
Source Line
206
Source File
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/flow/ConditionalFlowInfo.java

public UnconditionalFlowInfo unconditionalInits() {
        return initsWhenTrue.unconditionalInits().
                        mergedWith(initsWhenFalse.unconditionalInits());
}

public UnconditionalFlowInfo unconditionalInitsWithoutSideEffect() {
        // cannot do better here than unconditionalCopy - but still a different 
        // operation for UnconditionalFlowInfo
        return initsWhenTrue.unconditionalCopy().
                        mergedWith(initsWhenFalse.unconditionalInits());
}


Clone AbstractionParameter Count: 4Parameter Bindings

public UnconditionalFlowInfo  [[#variable5c9a98c0]]() {
  return initsWhenTrue. [[#variable5c9a98c0]]().mergedWith(initsWhenFalse.unconditionalInits());
}

public UnconditionalFlowInfo  [[#variable5c9a9880]]() {
  // cannot do better here than unconditionalCopy - but still a different 
  // operation for UnconditionalFlowInfo
  return initsWhenTrue. [[#variable5c83a4a0]]().mergedWith(initsWhenFalse. [[#variable5c9a9860]]());
// should never happen, hence suboptimal does not hurt
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#5c9a98c0]]
unconditionalCopy 
12[[#5c9a98c0]]
unconditionalInits 
21[[#5c9a9880]]
unconditionalFieldLessCopy 
22[[#5c9a9880]]
unconditionalInitsWithoutSideEffect 
31[[#5c83a4a0]]
unconditionalFieldLessCopy 
32[[#5c83a4a0]]
unconditionalCopy 
41[[#5c9a9860]]
unconditionalFieldLessCopy 
42[[#5c9a9860]]
unconditionalInits