| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 18 | 2 | 5 | 0.987 | class_body_declarations[2] |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 18 | 179 | plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/code/flow/InputFlowAnalyzer.java |
| 2 | 18 | 199 | 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);
}
|
| ||||
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);
}
|
| |||
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 Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#5e1cfc80]] | IfStatement |
| 1 | 2 | [[#5e1cfc80]] | ConditionalExpression |
| 2 | 1 | [[#5e1cfc20]] | Statement |
| 2 | 2 | [[#5e1cfc20]] | Expression |
| 3 | 1 | [[#5e1cfbc0]] | getThenStatement |
| 3 | 2 | [[#5e1cfbc0]] | getThenExpression |
| 4 | 1 | [[#5e1cfaa0]] | getElseStatement |
| 4 | 2 | [[#5e1cfaa0]] | getElseExpression |
| 5 | 1 | [[#5e1cfb60]] | EnhancedForStatement |
| 5 | 2 | [[#5e1cfb60]] | DoStatement |