CloneSet908


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
18250.987class_body_declarations[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
118179
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/code/flow/InputFlowAnalyzer.java
218199
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/code/flow/InputFlowAnalyzer.java
Clone Instance
1
Line Count
18
Source Line
179
Source File
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/code/flow/InputFlowAnalyzer.java

        public void endVisit(ConditionalExpression node) {
                if (skipNode(node))
                        return;
                Expression thenPart = node.getThenExpression();
                Expression elsePart = node.getElseExpression();
                if ((thenPart != null && fSelection.coveredBy(thenPart)) ||
                                (elsePart != null && fSelection.coveredBy(elsePart))) {
                        GenericSequentialFlowInfo info = createSequential();
                        setFlowInfo(node, info);
                        endVisitConditional(info, node.getExpression(), new ASTNode[] {
                                                                                       thenPart, elsePart
                                                                                      } );
                }
                else   {
                        super.endVisit(node);
                }
        }

        public void endVisit(DoStatement node) {
                super.endVisit(node);
                handleLoopReentrance(node);
        }


Clone Instance
2
Line Count
18
Source Line
199
Source File
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/code/flow/InputFlowAnalyzer.java

        public void endVisit(IfStatement node) {
                if (skipNode(node))
                        return;
                Statement thenPart = node.getThenStatement();
                Statement elsePart = node.getElseStatement();
                if ((thenPart != null && fSelection.coveredBy(thenPart)) ||
                                (elsePart != null && fSelection.coveredBy(elsePart))) {
                        GenericSequentialFlowInfo info = createSequential();
                        setFlowInfo(node, info);
                        endVisitConditional(info, node.getExpression(), new ASTNode[] {
                                                                                       thenPart, elsePart
                                                                                      } );
                }
                else   {
                        super.endVisit(node);
                }
        }

        public void endVisit(EnhancedForStatement node) {
                super.endVisit(node);
                handleLoopReentrance(node);
        }


Clone AbstractionParameter Count: 5Parameter Bindings

public void endVisit( [[#variable5e1cfc80]] node) {
  if (skipNode(node))
    return;
   [[#variable5e1cfc20]] thenPart = node. [[#variable5e1cfbc0]]();
   [[#variable5e1cfc20]] elsePart = node. [[#variable5e1cfaa0]]();
  if ((thenPart != null && fSelection.coveredBy(thenPart)) || (elsePart != null && fSelection.coveredBy(elsePart))) {
    GenericSequentialFlowInfo info = createSequential();
    setFlowInfo(node, info);
    endVisitConditional(info, node.getExpression(), new ASTNode[] {
                                                                    thenPart,
                                                                    elsePart
                                                                  } );
  }
  else {
    super.endVisit(node);
  }
}

public void endVisit( [[#variable5e1cfb60]] node) {
  super.endVisit(node);
  handleLoopReentrance(node);
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#5e1cfc80]]
IfStatement 
12[[#5e1cfc80]]
ConditionalExpression 
21[[#5e1cfc20]]
Statement 
22[[#5e1cfc20]]
Expression 
31[[#5e1cfbc0]]
getThenStatement 
32[[#5e1cfbc0]]
getThenExpression 
41[[#5e1cfaa0]]
getElseStatement 
42[[#5e1cfaa0]]
getElseExpression 
51[[#5e1cfb60]]
EnhancedForStatement 
52[[#5e1cfb60]]
DoStatement