Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
35 | 2 | 0 | 1.000 | statement_sequence[7] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 35 | 419 | plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/lookup/LookupEnvironment.java |
2 | 35 | 482 | plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/lookup/LookupEnvironment.java |
| ||||
int dimension; TypeBinding originalType; switch (type.kind()) { case Binding.BASE_TYPE: case Binding.TYPE_PARAMETER: case Binding.WILDCARD_TYPE: case Binding.RAW_TYPE: return type; case Binding.ARRAY_TYPE: dimension = type.dimensions(); originalType = type.leafComponentType(); break; default: if (type.id == TypeIds.T_JavaLangObject) return type; // Object is not generic dimension = 0; originalType = type; } boolean needToConvert; switch (originalType.kind()) { case Binding.BASE_TYPE: return type; case Binding.GENERIC_TYPE: needToConvert = true; break; case Binding.PARAMETERIZED_TYPE: ParameterizedTypeBinding paramType = (ParameterizedTypeBinding) originalType; needToConvert = paramType.type.isGenericType(); // only recursive call to enclosing type can find parameterizedType with arguments break; default: needToConvert = false; break; } ReferenceBinding originalEnclosing = originalType.enclosingType(); TypeBinding convertedType; |
| ||||
int dimension; TypeBinding originalType; switch (type.kind()) { case Binding.BASE_TYPE: case Binding.TYPE_PARAMETER: case Binding.WILDCARD_TYPE: case Binding.RAW_TYPE: return type; case Binding.ARRAY_TYPE: dimension = type.dimensions(); originalType = type.leafComponentType(); break; default: if (type.id == TypeIds.T_JavaLangObject) return type; // Object is not generic dimension = 0; originalType = type; } boolean needToConvert; switch (originalType.kind()) { case Binding.BASE_TYPE: return type; case Binding.GENERIC_TYPE: needToConvert = true; break; case Binding.PARAMETERIZED_TYPE: ParameterizedTypeBinding paramType = (ParameterizedTypeBinding) originalType; needToConvert = paramType.type.isGenericType(); // only recursive call to enclosing type can find parameterizedType with arguments break; default: needToConvert = false; break; } ReferenceBinding originalEnclosing = originalType.enclosingType(); TypeBinding convertedType; |
| |||
int dimension; TypeBinding originalType; switch (type.kind()) { case Binding.BASE_TYPE: case Binding.TYPE_PARAMETER: case Binding.WILDCARD_TYPE: case Binding.RAW_TYPE: return type; case Binding.ARRAY_TYPE: dimension = type.dimensions(); originalType = type.leafComponentType(); break; default: if (type.id == TypeIds.T_JavaLangObject) return type; // Object is not generic dimension = 0; originalType = type; } boolean needToConvert; switch (originalType.kind()) { case Binding.BASE_TYPE: return type; case Binding.GENERIC_TYPE: needToConvert = true; break; case Binding.PARAMETERIZED_TYPE: ParameterizedTypeBinding paramType = (ParameterizedTypeBinding) originalType; needToConvert = paramType.type.isGenericType(); // only recursive call to enclosing type can find parameterizedType with arguments break; default: needToConvert = false; break; } ReferenceBinding originalEnclosing = originalType.enclosingType(); TypeBinding convertedType; |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
None |