CloneSet1868


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
19230.969executable_statement
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
119607
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/TypeDeclaration.java
216627
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/TypeDeclaration.java
Clone Instance
1
Line Count
19
Source Line
607
Source File
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/TypeDeclaration.java

                                              {
                                if ((staticFieldInfo.tagBits&  FlowInfo.UNREACHABLE) != 0)
                                        field.bits &= ~ASTNode.IsReachable;

                                /*if (field.isField()){
                                        staticInitializerContext.handledExceptions = NoExceptions; // no exception is allowed jls8.3.2
                                } else {*/
                                staticInitializerContext.handledExceptions = Binding.ANY_EXCEPTION; // tolerate them all, and record them
                                /*}*/
                                staticFieldInfo =
                                        field.analyseCode(
                                                this.staticInitializerScope, 
                                                staticInitializerContext, 
                                                staticFieldInfo);
                                // in case the initializer is not reachable, use a reinitialized flowInfo and enter a fake reachable
                                // branch, since the previous initializer already got the blame.
                                if (staticFieldInfo == FlowInfo.DEAD_END) {
                                        this.staticInitializerScope.problemReporter().initializerMustCompleteNormally(field);
                                        staticFieldInfo = FlowInfo.initial(this.maxFieldCount).setReachMode(FlowInfo.UNREACHABLE);
                                }
                                              }


Clone Instance
2
Line Count
16
Source Line
627
Source File
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/TypeDeclaration.java

                               {
                                if ((nonStaticFieldInfo.tagBits&  FlowInfo.UNREACHABLE) != 0)
                                        field.bits &= ~ASTNode.IsReachable;

                                /*if (field.isField()){
                                        initializerContext.handledExceptions = NoExceptions; // no exception is allowed jls8.3.2
                                } else {*/
                                        initializerContext.handledExceptions = Binding.ANY_EXCEPTION; // tolerate them all, and record them
                                /*}*/
                                nonStaticFieldInfo =
                                        field.analyseCode(this.initializerScope, initializerContext, nonStaticFieldInfo);
                                // in case the initializer is not reachable, use a reinitialized flowInfo and enter a fake reachable
                                // branch, since the previous initializer already got the blame.
                                if (nonStaticFieldInfo == FlowInfo.DEAD_END) {
                                        this.initializerScope.problemReporter().initializerMustCompleteNormally(field);
                                        nonStaticFieldInfo = FlowInfo.initial(this.maxFieldCount).setReachMode(FlowInfo.UNREACHABLE);
                                }
                               }


Clone AbstractionParameter Count: 3Parameter Bindings

{
  if (( [[#variable97bd40e0]].tagBits&FlowInfo.UNREACHABLE) != 0)
    field.bits &= ~ASTNode.IsReachable;
   [[#variable97bd4060]].handledExceptions = Binding.ANY_EXCEPTION; // tolerate them all, and record them
   [[#variable97bd40e0]]= field.analyseCode(this. [[#variable990dbfc0]],  [[#variable97bd4060]],  [[#variable97bd40e0]]);
  // in case the initializer is not reachable, use a reinitialized flowInfo and enter a fake reachable
  // branch, since the previous initializer already got the blame.
  if ( [[#variable97bd40e0]]== FlowInfo.DEAD_END) {
    this. [[#variable990dbfc0]].problemReporter().initializerMustCompleteNormally(field);
     [[#variable97bd40e0]]= FlowInfo.initial(this.maxFieldCount).setReachMode(FlowInfo.UNREACHABLE);
  }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#97bd40e0]]
staticFieldInfo 
12[[#97bd40e0]]
nonStaticFieldInfo 
21[[#97bd4060]]
/*if (field.isField()){
        staticInitializerContext.handledExceptions = NoExceptions; // no exception is allowed jls8.3.2
} else {*/
staticInitializerContext 
22[[#97bd4060]]
/*if (field.isField()){
        initializerContext.handledExceptions = NoExceptions; // no exception is allowed jls8.3.2
} else {*/
initializerContext 
31[[#990dbfc0]]
staticInitializerScope 
32[[#990dbfc0]]
initializerScope