CloneSet2561


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
8240.983class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
18122
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/util/StatementAnalyzer.java
28208
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/util/StatementAnalyzer.java
Clone Instance
1
Line Count
8
Source Line
122
Source File
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);
        }


Clone Instance
2
Line Count
8
Source Line
208
Source File
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(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);
        }


Clone AbstractionParameter Count: 4Parameter Bindings

/* (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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#62227980]]
DoStatement 
12[[#62227980]]
WhileStatement 
21[[#62227920]]
getBody 
22[[#62227920]]
getExpression 
31[[#55933820]]
getExpression 
32[[#55933820]]
getBody 
41[[#55933800]]
StatementAnalyzer_do_body_expression 
42[[#55933800]]
StatementAnalyzer_while_expression_body