Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
19 | 2 | 3 | 0.969 | executable_statement |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 19 | 607 | plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/TypeDeclaration.java |
2 | 16 | 627 | 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); } } |
| ||||
{ 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); } } |
| |||
{ 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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#97bd40e0]] | staticFieldInfo |
1 | 2 | [[#97bd40e0]] | nonStaticFieldInfo |
2 | 1 | [[#97bd4060]] | /*if (field.isField()){ staticInitializerContext.handledExceptions = NoExceptions; // no exception is allowed jls8.3.2 } else {*/ staticInitializerContext |
2 | 2 | [[#97bd4060]] | /*if (field.isField()){ initializerContext.handledExceptions = NoExceptions; // no exception is allowed jls8.3.2 } else {*/ initializerContext |
3 | 1 | [[#990dbfc0]] | staticInitializerScope |
3 | 2 | [[#990dbfc0]] | initializerScope |