Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
4 | 2 | 3 | 0.964 | statement_sequence[3] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 4 | 605 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/AdvancedQuickAssistProcessor.java |
2 | 4 | 611 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/AdvancedQuickAssistProcessor.java |
| ||||
// Expression leftOperand = getInversedBooleanExpression(ast, rewrite, infixExpression.getLeftOperand(), provider); int leftPrecedence = getExpressionPrecedence(leftOperand); if (newOperatorPrecedence < leftPrecedence) { leftOperand = getParenthesizedExpression(ast, leftOperand); } |
| ||||
// Expression rightOperand = getInversedBooleanExpression(ast, rewrite, infixExpression.getRightOperand(), provider); int rightPrecedence = getExpressionPrecedence(rightOperand); if (newOperatorPrecedence < rightPrecedence) { rightOperand = getParenthesizedExpression(ast, rightOperand); } |
| |||
// Expression [[#variable97b3dcc0]]= getInversedBooleanExpression(ast, rewrite, infixExpression. [[#variable97b3dd20]](), provider); int [[#variable97b3dd80]]= getExpressionPrecedence( [[#variable97b3dcc0]]); if (newOperatorPrecedence < [[#variable97b3dd80]]) { [[#variable97b3dcc0]]= getParenthesizedExpression(ast, [[#variable97b3dcc0]]); } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#97b3dcc0]] | leftOperand |
1 | 2 | [[#97b3dcc0]] | rightOperand |
2 | 1 | [[#97b3dd20]] | getLeftOperand |
2 | 2 | [[#97b3dd20]] | getRightOperand |
3 | 1 | [[#97b3dd80]] | leftPrecedence |
3 | 2 | [[#97b3dd80]] | rightPrecedence |