| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 2 | 2 | 3 | 0.957 | class_body_declaration |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 2 | 39 | plugins/org.eclipse.jdt.debug/eval/org/eclipse/jdt/internal/debug/eval/ast/instructions/DivideOperator.java |
| 2 | 2 | 46 | plugins/org.eclipse.jdt.debug/eval/org/eclipse/jdt/internal/debug/eval/ast/instructions/DivideOperator.java |
| ||||
/*
* @see BinaryOperator#getDoubleResult(IJavaValue, IJavaValue)
*/
protected double getDoubleResult(IJavaValue leftOperand, IJavaValue rightOperand) {
return ((IJavaPrimitiveValue) leftOperand).getDoubleValue() / ((IJavaPrimitiveValue) rightOperand).getDoubleValue();
}
|
| ||||
/*
* @see BinaryOperator#getFloatResult(IJavaValue, IJavaValue)
*/
protected float getFloatResult(IJavaValue leftOperand, IJavaValue rightOperand) {
return ((IJavaPrimitiveValue) leftOperand).getFloatValue() / ((IJavaPrimitiveValue) rightOperand).getFloatValue();
}
|
| |||
/*
* @see BinaryOperator#getDoubleResult(IJavaValue, IJavaValue)
*/
/*
* @see BinaryOperator#getFloatResult(IJavaValue, IJavaValue)
*/
protected [[#variable4c8ede20]] [[#variable4c8edda0]](IJavaValue leftOperand, IJavaValue rightOperand) {
return ((IJavaPrimitiveValue) leftOperand). [[#variable4c8edca0]]() / ((IJavaPrimitiveValue) rightOperand). [[#variable4c8edca0]]();
}
|
| CloneAbstraction |
| Parameter Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#4c8ede20]] | double |
| 1 | 2 | [[#4c8ede20]] | float |
| 2 | 1 | [[#4c8edda0]] | getDoubleResult |
| 2 | 2 | [[#4c8edda0]] | getFloatResult |
| 3 | 1 | [[#4c8edca0]] | getDoubleValue |
| 3 | 2 | [[#4c8edca0]] | getFloatValue |