CloneSet304


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
37201.000class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
137203
plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/fix/ExpressionsFix.java
237676
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/AdvancedQuickAssistProcessor.java
Clone Instance
1
Line Count
37
Source Line
203
Source File
plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/fix/ExpressionsFix.java

                private static int getInfixOperatorPrecedence(InfixExpression.Operator operator) {
                        if ((operator == InfixExpression.Operator.TIMES) || (operator == InfixExpression.Operator.DIVIDE) ||
                                           (operator == InfixExpression.Operator.REMAINDER)) {
                                return 3;
                        }
                        if ((operator == InfixExpression.Operator.PLUS) || (operator == InfixExpression.Operator.MINUS)) {
                                return 4;
                        }
                        if ((operator == InfixExpression.Operator.LEFT_SHIFT) ||
                                           (operator == InfixExpression.Operator.RIGHT_SHIFT_SIGNED) ||
                                           (operator == InfixExpression.Operator.RIGHT_SHIFT_UNSIGNED)) {
                                return 5;
                        }
                        if ((operator == InfixExpression.Operator.LESS) || (operator == InfixExpression.Operator.GREATER) ||
                                           (operator == InfixExpression.Operator.LESS_EQUALS) ||
                                           (operator == InfixExpression.Operator.GREATER_EQUALS)) {
                                return 6;
                        }
                        if ((operator == InfixExpression.Operator.EQUALS) || (operator == InfixExpression.Operator.NOT_EQUALS)) {
                                return 7;
                        }
                        if (operator == InfixExpression.Operator.AND) {
                                return 8;
                        }
                        if (operator == InfixExpression.Operator.XOR) {
                                return 9;
                        }
                        if (operator == InfixExpression.Operator.OR) {
                                return 10;
                        }
                        if (operator == InfixExpression.Operator.CONDITIONAL_AND) {
                                return 11;
                        }
                        if (operator == InfixExpression.Operator.CONDITIONAL_OR) {
                                return 12;
                        }
                        return -1;
                }


Clone Instance
2
Line Count
37
Source Line
676
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/AdvancedQuickAssistProcessor.java

        private static int getInfixOperatorPrecedence(InfixExpression.Operator operator) {
                if ((operator == InfixExpression.Operator.TIMES) || (operator == InfixExpression.Operator.DIVIDE) ||
                                   (operator == InfixExpression.Operator.REMAINDER)) {
                        return 3;
                }
                if ((operator == InfixExpression.Operator.PLUS) || (operator == InfixExpression.Operator.MINUS)) {
                        return 4;
                }
                if ((operator == InfixExpression.Operator.LEFT_SHIFT) ||
                                   (operator == InfixExpression.Operator.RIGHT_SHIFT_SIGNED) ||
                                   (operator == InfixExpression.Operator.RIGHT_SHIFT_UNSIGNED)) {
                        return 5;
                }
                if ((operator == InfixExpression.Operator.LESS) || (operator == InfixExpression.Operator.GREATER) ||
                                   (operator == InfixExpression.Operator.LESS_EQUALS) ||
                                   (operator == InfixExpression.Operator.GREATER_EQUALS)) {
                        return 6;
                }
                if ((operator == InfixExpression.Operator.EQUALS) || (operator == InfixExpression.Operator.NOT_EQUALS)) {
                        return 7;
                }
                if (operator == InfixExpression.Operator.AND) {
                        return 8;
                }
                if (operator == InfixExpression.Operator.XOR) {
                        return 9;
                }
                if (operator == InfixExpression.Operator.OR) {
                        return 10;
                }
                if (operator == InfixExpression.Operator.CONDITIONAL_AND) {
                        return 11;
                }
                if (operator == InfixExpression.Operator.CONDITIONAL_OR) {
                        return 12;
                }
                return -1;
        }


Clone AbstractionParameter Count: 0Parameter Bindings

private static int getInfixOperatorPrecedence(InfixExpression.Operator operator) {
  if ((operator == InfixExpression.Operator.TIMES) || (operator == InfixExpression.Operator.DIVIDE) || (operator == InfixExpression.Operator.REMAINDER)) {
    return 3;
  }
  if ((operator == InfixExpression.Operator.PLUS) || (operator == InfixExpression.Operator.MINUS)) {
    return 4;
  }
  if ((operator == InfixExpression.Operator.LEFT_SHIFT) || (operator == InfixExpression.Operator.RIGHT_SHIFT_SIGNED) || (operator == InfixExpression.Operator.RIGHT_SHIFT_UNSIGNED)) {
    return 5;
  }
  if ((operator == InfixExpression.Operator.LESS) || (operator == InfixExpression.Operator.GREATER) || (operator == InfixExpression.Operator.LESS_EQUALS) || (operator == InfixExpression.Operator.GREATER_EQUALS)) {
    return 6;
  }
  if ((operator == InfixExpression.Operator.EQUALS) || (operator == InfixExpression.Operator.NOT_EQUALS)) {
    return 7;
  }
  if (operator == InfixExpression.Operator.AND) {
    return 8;
  }
  if (operator == InfixExpression.Operator.XOR) {
    return 9;
  }
  if (operator == InfixExpression.Operator.OR) {
    return 10;
  }
  if (operator == InfixExpression.Operator.CONDITIONAL_AND) {
    return 11;
  }
  if (operator == InfixExpression.Operator.CONDITIONAL_OR) {
    return 12;
  }
  return -1;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None