CloneSet843


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
25210.998statement_sequence[5]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
12583
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/TryStatement.java
225194
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/TryStatement.java
Clone Instance
1
Line Count
25
Source Line
83
Source File
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/TryStatement.java

                // no finally block -- this is a simplified copy of the else part
                // process the try block in a context handling the local exceptions.
                ExceptionHandlingFlowContext handlingContext =
                        new ExceptionHandlingFlowContext(
                                flowContext, 
                                this, 
                                this.caughtExceptionTypes, 
                                this.scope, 
                                flowInfo.unconditionalInits());
                handlingContext.initsOnFinally =
                        new NullInfoRegistry(flowInfo.unconditionalInits());
                // only try blocks initialize that member - may consider creating a
                // separate class if needed

                FlowInfo tryInfo;
                if (this.tryBlock.isEmptyBlock()) {
                        tryInfo = flowInfo;
                        this.postTryInitStateIndex = currentScope.methodScope().recordInitializationStates(tryInfo);
                }
                else   {
                        tryInfo = this.tryBlock.analyseCode(currentScope, handlingContext, flowInfo.copy());
                        if ((tryInfo.tagBits&  FlowInfo.UNREACHABLE) != 0)
                                this.bits |= ASTNode.IsTryBlockExiting;
                        this.postTryInitStateIndex = currentScope.methodScope().recordInitializationStates(tryInfo);
                }
                // check unreachable catch blocks
                handlingContext.complainIfUnusedExceptionHandlers(this.scope, this );


Clone Instance
2
Line Count
25
Source Line
194
Source File
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/TryStatement.java

                // process the try block in a context handling the local exceptions.
                ExceptionHandlingFlowContext handlingContext =
                        new ExceptionHandlingFlowContext(
                                insideSubContext, 
                                this, 
                                this.caughtExceptionTypes, 
                                this.scope, 
                                flowInfo.unconditionalInits());
                handlingContext.initsOnFinally =
                        new NullInfoRegistry(flowInfo.unconditionalInits());
                // only try blocks initialize that member - may consider creating a
                // separate class if needed             

                FlowInfo tryInfo;
                if (this.tryBlock.isEmptyBlock()) {
                        tryInfo = flowInfo;
                        this.postTryInitStateIndex = currentScope.methodScope().recordInitializationStates(tryInfo);
                }
                else   {
                        tryInfo = this.tryBlock.analyseCode(currentScope, handlingContext, flowInfo.copy());
                        if ((tryInfo.tagBits&  FlowInfo.UNREACHABLE) != 0)
                                this.bits |= ASTNode.IsTryBlockExiting;
                        this.postTryInitStateIndex = currentScope.methodScope().recordInitializationStates(tryInfo);
                }
                // check unreachable catch blocks
                handlingContext.complainIfUnusedExceptionHandlers(this.scope, this );


Clone AbstractionParameter Count: 1Parameter Bindings

// no finally block -- this is a simplified copy of the else part
// process the try block in a context handling the local exceptions.
ExceptionHandlingFlowContext handlingContext = new ExceptionHandlingFlowContext( [[#variable52342880]], this, this.caughtExceptionTypes, this.scope, flowInfo.unconditionalInits());
handlingContext.initsOnFinally = new NullInfoRegistry(flowInfo.unconditionalInits());
// only try blocks initialize that member - may consider creating a
// separate class if needed
// separate class if needed             
FlowInfo tryInfo;
if (this.tryBlock.isEmptyBlock()) {
  tryInfo = flowInfo;
  this.postTryInitStateIndex = currentScope.methodScope().recordInitializationStates(tryInfo);
}
else {
  tryInfo = this.tryBlock.analyseCode(currentScope, handlingContext, flowInfo.copy());
  if ((tryInfo.tagBits&FlowInfo.UNREACHABLE) != 0)
    this.bits |= ASTNode.IsTryBlockExiting;
  this.postTryInitStateIndex = currentScope.methodScope().recordInitializationStates(tryInfo);
}
// check unreachable catch blocks
handlingContext.complainIfUnusedExceptionHandlers(this.scope, this );
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#52342880]]
flowContext 
12[[#52342880]]
insideSubContext