Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
37 | 2 | 0 | 1.000 | class_body_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 37 | 203 | plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/fix/ExpressionsFix.java |
2 | 37 | 676 | 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; } |
| ||||
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; } |
| |||
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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
None |