CloneSet2171


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
11201.000statement_sequence[7]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1114962
plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ASTConverter.java
2115010
plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ASTConverter.java
Clone Instance
1
Line Count
11
Source Line
4962
Source File
plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ASTConverter.java

                                        int start = type.getStartPosition();
                                        ArrayType subarrayType = arrayType;
                                        int index = extraDimension;
                                        while (index > 0) {
                                                subarrayType = (ArrayType) subarrayType.getComponentType();
                                                index--;
                                        }
                                        int end = retrieveProperRightBracketPosition(remainingDimensions, start);
                                        subarrayType.setSourceRange(start, end - start + 1);
                                        // cut the child loose from its parent (without creating garbage)
                                        subarrayType.setParent(null, null);


Clone Instance
2
Line Count
11
Source Line
5010
Source File
plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ASTConverter.java

                                        int start = type.getStartPosition();
                                        ArrayType subarrayType = arrayType;
                                        int index = extraDimension;
                                        while (index > 0) {
                                                subarrayType = (ArrayType) subarrayType.getComponentType();
                                                index--;
                                        }
                                        int end = retrieveProperRightBracketPosition(remainingDimensions, start);
                                        subarrayType.setSourceRange(start, end - start + 1);
                                        // cut the child loose from its parent (without creating garbage)
                                        subarrayType.setParent(null, null);


Clone AbstractionParameter Count: 0Parameter Bindings

int start = type.getStartPosition();
ArrayType subarrayType = arrayType;
int index = extraDimension;
while (index > 0) {
  subarrayType = (ArrayType) subarrayType.getComponentType();
  index--;
}
int end = retrieveProperRightBracketPosition(remainingDimensions, start);
subarrayType.setSourceRange(start, end - start + 1);
// cut the child loose from its parent (without creating garbage)
subarrayType.setParent(null, null);
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None