CloneSet1050


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
16220.969class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1162200
plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ASTConverter.java
2162218
plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ASTConverter.java
Clone Instance
1
Line Count
16
Source Line
2200
Source File
plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ASTConverter.java

        public PostfixExpression convert(org.eclipse.jdt.internal.compiler.ast.PostfixExpression expression) {
                final PostfixExpression postfixExpression = new PostfixExpression(this.ast);
                if (this.resolveBindings) {
                        recordNodes(postfixExpression, expression);
                }
                postfixExpression.setSourceRange(expression.sourceStart, expression.sourceEnd - expression.sourceStart + 1);
                postfixExpression.setOperand(convert(expression.lhs));
                switch (expression.operator) {
                        case org.eclipse.jdt.internal.compiler.ast.OperatorIds.PLUS:
                                postfixExpression.setOperator(PostfixExpression.Operator.INCREMENT);
                                break;
                        case org.eclipse.jdt.internal.compiler.ast.OperatorIds.MINUS:
                                postfixExpression.setOperator(PostfixExpression.Operator.DECREMENT);
                                break;
                      }
                return postfixExpression;
        }


Clone Instance
2
Line Count
16
Source Line
2218
Source File
plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ASTConverter.java

        public PrefixExpression convert(org.eclipse.jdt.internal.compiler.ast.PrefixExpression expression) {
                final PrefixExpression prefixExpression = new PrefixExpression(this.ast);
                if (this.resolveBindings) {
                        recordNodes(prefixExpression, expression);
                }
                prefixExpression.setSourceRange(expression.sourceStart, expression.sourceEnd - expression.sourceStart + 1);
                prefixExpression.setOperand(convert(expression.lhs));
                switch (expression.operator) {
                        case org.eclipse.jdt.internal.compiler.ast.OperatorIds.PLUS:
                                prefixExpression.setOperator(PrefixExpression.Operator.INCREMENT);
                                break;
                        case org.eclipse.jdt.internal.compiler.ast.OperatorIds.MINUS:
                                prefixExpression.setOperator(PrefixExpression.Operator.DECREMENT);
                                break;
                      }
                return prefixExpression;
        }


Clone AbstractionParameter Count: 2Parameter Bindings

public [[#variable9581d8c0]] convert(org.eclipse.jdt.internal.compiler.ast. [[#variable9581d8c0]] expression) {
  final [[#variable9581d8c0]]  [[#variable9581d760]]= new [[#variable9581d8c0]](this.ast);
  if (this.resolveBindings) {
    recordNodes( [[#variable9581d760]], expression);
  }
   [[#variable9581d760]].setSourceRange(expression.sourceStart, expression.sourceEnd - expression.sourceStart + 1);
   [[#variable9581d760]].setOperand(convert(expression.lhs));
  switch (expression.operator) {
    case org.eclipse.jdt.internal.compiler.ast.OperatorIds.PLUS:
       [[#variable9581d760]].setOperator( [[#variable9581d8c0]].Operator.INCREMENT);
      break;
    case org.eclipse.jdt.internal.compiler.ast.OperatorIds.MINUS:
       [[#variable9581d760]].setOperator( [[#variable9581d8c0]].Operator.DECREMENT);
      break;
  }
  return [[#variable9581d760]];
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#9581d8c0]]
PostfixExpression 
12[[#9581d8c0]]
PrefixExpression 
21[[#9581d760]]
postfixExpression 
22[[#9581d760]]
prefixExpression