CloneSet2231


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
16201.000class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
116425
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/code/ExtractConstantRefactoring.java
216899
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/code/ExtractTempRefactoring.java
Clone Instance
1
Line Count
16
Source Line
425
Source File
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/code/ExtractConstantRefactoring.java

        //       !!! -- same as in ExtractTempRefactoring
        private boolean isLiteralNodeSelected() throws JavaModelException {
                IExpressionFragment fragment = getSelectedExpression();
                if (fragment == null)
                        return false;
                Expression expression = fragment.getAssociatedExpression();
                if (expression == null)
                        return false;
                switch (expression.getNodeType()) {
                        case ASTNode.BOOLEAN_LITERAL:
                        case ASTNode.CHARACTER_LITERAL:
                        case ASTNode.NULL_LITERAL:
                        case ASTNode.NUMBER_LITERAL:
                                return true;

                        default:
                                return false;
                      }
        }


Clone Instance
2
Line Count
16
Source Line
899
Source File
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/code/ExtractTempRefactoring.java

        private boolean isLiteralNodeSelected() throws JavaModelException {
                IExpressionFragment fragment = getSelectedExpression();
                if (fragment == null)
                        return false;
                Expression expression = fragment.getAssociatedExpression();
                if (expression == null)
                        return false;
                switch (expression.getNodeType()) {
                        case ASTNode.BOOLEAN_LITERAL:
                        case ASTNode.CHARACTER_LITERAL:
                        case ASTNode.NULL_LITERAL:
                        case ASTNode.NUMBER_LITERAL:
                                return true;

                        default:
                                return false;
                      }
        }


Clone AbstractionParameter Count: 0Parameter Bindings

//       !!! -- same as in ExtractTempRefactoring
private boolean isLiteralNodeSelected() throws JavaModelException {
  IExpressionFragment fragment = getSelectedExpression();
  if (fragment == null)
    return false;
  Expression expression = fragment.getAssociatedExpression();
  if (expression == null)
    return false;
  switch (expression.getNodeType()) {
    case ASTNode.BOOLEAN_LITERAL:
    case ASTNode.CHARACTER_LITERAL:
    case ASTNode.NULL_LITERAL:
    case ASTNode.NUMBER_LITERAL:
      return true;
    default:
      return false;
  }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None