Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
5 | 3 | 2 | 0.978 | statement_sequence_member |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 5 | 404 | plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/ConditionalExpression.java |
2 | 5 | 411 | plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/ConditionalExpression.java |
3 | 5 | 418 | plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/ConditionalExpression.java |
| ||||
// Manual binary numeric promotion // int if (BaseTypeBinding.isNarrowing(valueIfTrueType.id, T_int) && BaseTypeBinding.isNarrowing(valueIfFalseType.id, T_int)) { valueIfTrue.computeConversion(scope, TypeBinding.INT, originalValueIfTrueType); valueIfFalse.computeConversion(scope, TypeBinding.INT, originalValueIfFalseType); return this.resolvedType = TypeBinding.INT; } |
| ||||
// long if (BaseTypeBinding.isNarrowing(valueIfTrueType.id, T_long) && BaseTypeBinding.isNarrowing(valueIfFalseType.id, T_long)) { valueIfTrue.computeConversion(scope, TypeBinding.LONG, originalValueIfTrueType); valueIfFalse.computeConversion(scope, TypeBinding.LONG, originalValueIfFalseType); return this.resolvedType = TypeBinding.LONG; } |
| ||||
// float if (BaseTypeBinding.isNarrowing(valueIfTrueType.id, T_float) && BaseTypeBinding.isNarrowing(valueIfFalseType.id, T_float)) { valueIfTrue.computeConversion(scope, TypeBinding.FLOAT, originalValueIfTrueType); valueIfFalse.computeConversion(scope, TypeBinding.FLOAT, originalValueIfFalseType); return this.resolvedType = TypeBinding.FLOAT; } |
| |||
// float // long // Manual binary numeric promotion // int if (BaseTypeBinding.isNarrowing(valueIfTrueType.id, [[#variable559ef5a0]]) && BaseTypeBinding.isNarrowing(valueIfFalseType.id, [[#variable559ef5a0]])) { valueIfTrue.computeConversion(scope, TypeBinding. [[#variable559ef500]], originalValueIfTrueType); valueIfFalse.computeConversion(scope, TypeBinding. [[#variable559ef500]], originalValueIfFalseType); return this.resolvedType = TypeBinding. [[#variable559ef500]]; } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#559ef5a0]] | T_float |
1 | 2 | [[#559ef5a0]] | T_long |
1 | 3 | [[#559ef5a0]] | T_int |
2 | 1 | [[#559ef500]] | FLOAT |
2 | 2 | [[#559ef500]] | LONG |
2 | 3 | [[#559ef500]] | INT |