CloneSet1461


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
5320.978statement_sequence_member
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
15404
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/ConditionalExpression.java
25411
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/ConditionalExpression.java
35418
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/ConditionalExpression.java
Clone Instance
1
Line Count
5
Source Line
404
Source File
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;
                        }


Clone Instance
2
Line Count
5
Source Line
411
Source File
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/ConditionalExpression.java

                        // 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;
                        }


Clone Instance
3
Line Count
5
Source Line
418
Source File
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/ConditionalExpression.java

                        // 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;
                        }


Clone AbstractionParameter Count: 2Parameter Bindings

// 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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#559ef5a0]]
T_float 
12[[#559ef5a0]]
T_long 
13[[#559ef5a0]]
T_int 
21[[#559ef500]]
FLOAT 
22[[#559ef500]]
LONG 
23[[#559ef500]]
INT