Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
8 | 2 | 4 | 0.983 | class_body_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 8 | 122 | plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/util/StatementAnalyzer.java |
2 | 8 | 208 | plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/util/StatementAnalyzer.java |
| ||||
/* (non-Javadoc) * Method declared in ASTVisitor */ public void endVisit(DoStatement node) { ASTNode[] selectedNodes = getSelectedNodes(); if (doAfterValidation(node, selectedNodes)) { if (contains(selectedNodes, node.getBody()) && contains(selectedNodes, node.getExpression())) { invalidSelection(RefactoringCoreMessages.StatementAnalyzer_do_body_expression); } } super.endVisit(node); } |
| ||||
/* (non-Javadoc) * Method declared in ASTVisitor */ public void endVisit(WhileStatement node) { ASTNode[] selectedNodes = getSelectedNodes(); if (doAfterValidation(node, selectedNodes)) { if (contains(selectedNodes, node.getExpression()) && contains(selectedNodes, node.getBody())) { invalidSelection(RefactoringCoreMessages.StatementAnalyzer_while_expression_body); } } super.endVisit(node); } |
| |||
/* (non-Javadoc) * Method declared in ASTVisitor */ public void endVisit( [[#variable62227980]] node) { ASTNode[] selectedNodes = getSelectedNodes(); if (doAfterValidation(node, selectedNodes)) { if (contains(selectedNodes, node. [[#variable62227920]]()) && contains(selectedNodes, node. [[#variable55933820]]())) { invalidSelection(RefactoringCoreMessages. [[#variable55933800]]); } } super.endVisit(node); } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#62227980]] | DoStatement |
1 | 2 | [[#62227980]] | WhileStatement |
2 | 1 | [[#62227920]] | getBody |
2 | 2 | [[#62227920]] | getExpression |
3 | 1 | [[#55933820]] | getExpression |
3 | 2 | [[#55933820]] | getBody |
4 | 1 | [[#55933800]] | StatementAnalyzer_do_body_expression |
4 | 2 | [[#55933800]] | StatementAnalyzer_while_expression_body |