CloneSet865


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
19220.987class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1193155
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/problem/ProblemReporter.java
2193175
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/problem/ProblemReporter.java
Clone Instance
1
Line Count
19
Source Line
3155
Source File
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/problem/ProblemReporter.java

public void invalidOperator(BinaryExpression expression, TypeBinding leftType, TypeBinding rightType) {
        String leftName = new String(leftType.readableName());
        String rightName = new String(rightType.readableName());
        String leftShortName = new String(leftType.shortReadableName());
        String rightShortName = new String(rightType.shortReadableName());
        if (leftShortName.equals(rightShortName)) {
                leftShortName = leftName;
                rightShortName = rightName;
        }
        this.handle(
                IProblem.InvalidOperator, 
                new String[] {
                        expression.operatorToString(),
                        leftName + ", " + rightName
                             },                       //$NON-NLS-1$
                 new String[] {
                         expression.operatorToString(),
                         leftShortName + ", " + rightShortName
                              },                                //$NON-NLS-1$
                 expression.sourceStart, expression.sourceEnd);
}


Clone Instance
2
Line Count
19
Source Line
3175
Source File
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/problem/ProblemReporter.java

public void invalidOperator(CompoundAssignment assign, TypeBinding leftType, TypeBinding rightType) {
        String leftName = new String(leftType.readableName());
        String rightName = new String(rightType.readableName());
        String leftShortName = new String(leftType.shortReadableName());
        String rightShortName = new String(rightType.shortReadableName());
        if (leftShortName.equals(rightShortName)) {
                leftShortName = leftName;
                rightShortName = rightName;
        }
        this.handle(
                IProblem.InvalidOperator, 
                new String[] {
                        assign.operatorToString(),
                        leftName + ", " + rightName
                             },                       //$NON-NLS-1$
                 new String[] {
                         assign.operatorToString(),
                         leftShortName + ", " + rightShortName
                              },                                //$NON-NLS-1$
                 assign.sourceStart, assign.sourceEnd);
}


Clone AbstractionParameter Count: 2Parameter Bindings

public void invalidOperator( [[#variable53854e00]]  [[#variableb71b2440]], TypeBinding leftType, TypeBinding rightType) {
  String leftName = new String(leftType.readableName());
  String rightName = new String(rightType.readableName());
  String leftShortName = new String(leftType.shortReadableName());
  String rightShortName = new String(rightType.shortReadableName());
  if (leftShortName.equals(rightShortName)) {
    leftShortName = leftName;
    rightShortName = rightName;
  }
  this.handle(IProblem.InvalidOperator, new String[] {
                                                        [[#variableb71b2440]].operatorToString(),
                                                       leftName + ", " + rightName
                                                     }, //$NON-NLS-1$
               new String[] {
                               [[#variableb71b2440]].operatorToString(),
                              leftShortName + ", " + rightShortName
                            }, //$NON-NLS-1$
                [[#variableb71b2440]].sourceStart,  [[#variableb71b2440]].sourceEnd);
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#53854e00]]
BinaryExpression 
12[[#53854e00]]
CompoundAssignment 
21[[#b71b2440]]
expression 
22[[#b71b2440]]
assign