CloneSet1538


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
16250.970class_body_declarations[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
119119
plugins/org.eclipse.jdt.core/formatter/org/eclipse/jdt/internal/formatter/BinaryExpressionFragmentBuilder.java
216357
plugins/org.eclipse.jdt.core/formatter/org/eclipse/jdt/internal/formatter/BinaryExpressionFragmentBuilder.java
Clone Instance
1
Line Count
19
Source Line
119
Source File
plugins/org.eclipse.jdt.core/formatter/org/eclipse/jdt/internal/formatter/BinaryExpressionFragmentBuilder.java

        public boolean visit(
                AND_AND_Expression and_and_Expression,
                BlockScope scope) {

                if (((and_and_Expression.bits&  ASTNode.ParenthesizedMASK) >> ASTNode.ParenthesizedSHIFT) != 0) {
                        addRealFragment(and_and_Expression);
                }
                else   {
                        and_and_Expression.left.traverse(this, scope);
                        this.operatorsList.add(new Integer(TerminalTokens.TokenNameAND_AND));
                        and_and_Expression.right.traverse(this, scope);
                }
                return false;
        }

        public boolean visit(
                ArrayAllocationExpression arrayAllocationExpression,
                BlockScope scope) {
                        this.addRealFragment(arrayAllocationExpression);
                        return false;
        }


Clone Instance
2
Line Count
16
Source Line
357
Source File
plugins/org.eclipse.jdt.core/formatter/org/eclipse/jdt/internal/formatter/BinaryExpressionFragmentBuilder.java

        public boolean visit(OR_OR_Expression or_or_Expression, BlockScope scope) {
                if (((or_or_Expression.bits&  ASTNode.ParenthesizedMASK) >> ASTNode.ParenthesizedSHIFT) != 0) {
                        addRealFragment(or_or_Expression);
                }
                else   {
                        or_or_Expression.left.traverse(this, scope);
                        this.operatorsList.add(new Integer(TerminalTokens.TokenNameOR_OR));
                        or_or_Expression.right.traverse(this, scope);
                }
                return false;
        }

        public boolean visit(
                PostfixExpression postfixExpression,
                BlockScope scope) {
                        this.addRealFragment(postfixExpression);
                        return false;
        }


Clone AbstractionParameter Count: 5Parameter Bindings

public boolean visit( [[#variable96150660]]  [[#variable96150600]], BlockScope scope) {
  if ((( [[#variable96150600]].bits&ASTNode.ParenthesizedMASK) >> ASTNode.ParenthesizedSHIFT) != 0) {
    addRealFragment( [[#variable96150600]]);
  }
  else {
     [[#variable96150600]].left.traverse(this, scope);
    this.operatorsList.add(new Integer(TerminalTokens. [[#variableb9fc07c0]]));
     [[#variable96150600]].right.traverse(this, scope);
  }
  return false;
}

public boolean visit( [[#variable961505a0]]  [[#variable96150580]], BlockScope scope) {
  this.addRealFragment( [[#variable96150580]]);
  return false;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#96150660]]
OR_OR_Expression 
12[[#96150660]]
AND_AND_Expression 
21[[#96150600]]
or_or_Expression 
22[[#96150600]]
and_and_Expression 
31[[#b9fc07c0]]
TokenNameOR_OR 
32[[#b9fc07c0]]
TokenNameAND_AND 
41[[#961505a0]]
PostfixExpression 
42[[#961505a0]]
ArrayAllocationExpression 
51[[#96150580]]
postfixExpression 
52[[#96150580]]
arrayAllocationExpression