| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 4 | 6 | 4 | 0.963 | statement_sequence_member |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 4 | 132 | plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/SortElementsOperation.java |
| 2 | 4 | 141 | plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/SortElementsOperation.java |
| 3 | 4 | 151 | plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/SortElementsOperation.java |
| 4 | 4 | 161 | plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/SortElementsOperation.java |
| 5 | 4 | 171 | plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/SortElementsOperation.java |
| 6 | 4 | 177 | plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/SortElementsOperation.java |
| ||||
for (Iterator iter = types.iterator(); iter.hasNext();) {
AbstractTypeDeclaration typeDeclaration = (AbstractTypeDeclaration) iter.next();
typeDeclaration.setProperty(CompilationUnitSorter.RELATIVE_ORDER, new Integer(typeDeclaration.getStartPosition()));
compilationUnit.setProperty(CONTAINS_MALFORMED_NODES, Boolean.valueOf(isMalformed(typeDeclaration)));
}
|
| ||||
for (Iterator iter = bodyDeclarations.iterator(); iter.hasNext();) {
BodyDeclaration bodyDeclaration = (BodyDeclaration) iter.next();
bodyDeclaration.setProperty(CompilationUnitSorter.RELATIVE_ORDER, new Integer(bodyDeclaration.getStartPosition()));
annotationTypeDeclaration.setProperty(CONTAINS_MALFORMED_NODES, Boolean.valueOf(isMalformed(bodyDeclaration)));
}
|
| ||||
for (Iterator iter = bodyDeclarations.iterator(); iter.hasNext();) {
BodyDeclaration bodyDeclaration = (BodyDeclaration) iter.next();
bodyDeclaration.setProperty(CompilationUnitSorter.RELATIVE_ORDER, new Integer(bodyDeclaration.getStartPosition()));
anonymousClassDeclaration.setProperty(CONTAINS_MALFORMED_NODES, Boolean.valueOf(isMalformed(bodyDeclaration)));
}
|
| ||||
for (Iterator iter = bodyDeclarations.iterator(); iter.hasNext();) {
BodyDeclaration bodyDeclaration = (BodyDeclaration) iter.next();
bodyDeclaration.setProperty(CompilationUnitSorter.RELATIVE_ORDER, new Integer(bodyDeclaration.getStartPosition()));
typeDeclaration.setProperty(CONTAINS_MALFORMED_NODES, Boolean.valueOf(isMalformed(bodyDeclaration)));
}
|
| ||||
for (Iterator iter = bodyDeclarations.iterator(); iter.hasNext();) {
BodyDeclaration bodyDeclaration = (BodyDeclaration) iter.next();
bodyDeclaration.setProperty(CompilationUnitSorter.RELATIVE_ORDER, new Integer(bodyDeclaration.getStartPosition()));
enumDeclaration.setProperty(CONTAINS_MALFORMED_NODES, Boolean.valueOf(isMalformed(bodyDeclaration)));
}
|
| ||||
for (Iterator iter = enumConstants.iterator(); iter.hasNext();) {
EnumConstantDeclaration enumConstantDeclaration = (EnumConstantDeclaration) iter.next();
enumConstantDeclaration.setProperty(CompilationUnitSorter.RELATIVE_ORDER, new Integer(enumConstantDeclaration.getStartPosition()));
enumDeclaration.setProperty(CONTAINS_MALFORMED_NODES, Boolean.valueOf(isMalformed(enumConstantDeclaration)));
}
|
| |||
for (Iterator iter = [[#variablea53961a0]].iterator(); iter.hasNext();) {
[[#variablea5396120]] [[#variableba973e60]]= ( [[#variablea5396120]]) iter.next();
[[#variableba973e60]].setProperty(CompilationUnitSorter.RELATIVE_ORDER, new Integer( [[#variableba973e60]].getStartPosition()));
[[#variablea53961c0]].setProperty(CONTAINS_MALFORMED_NODES, Boolean.valueOf(isMalformed( [[#variableba973e60]])));
}
|
| CloneAbstraction |
| Parameter Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#a53961a0]] | enumConstants |
| 1 | 2 | [[#a53961a0]] | bodyDeclarations |
| 1 | 3 | [[#a53961a0]] | bodyDeclarations |
| 1 | 4 | [[#a53961a0]] | bodyDeclarations |
| 1 | 5 | [[#a53961a0]] | bodyDeclarations |
| 1 | 6 | [[#a53961a0]] | types |
| 2 | 1 | [[#a5396120]] | EnumConstantDeclaration |
| 2 | 2 | [[#a5396120]] | BodyDeclaration |
| 2 | 3 | [[#a5396120]] | BodyDeclaration |
| 2 | 4 | [[#a5396120]] | BodyDeclaration |
| 2 | 5 | [[#a5396120]] | BodyDeclaration |
| 2 | 6 | [[#a5396120]] | AbstractTypeDeclaration |
| 3 | 1 | [[#ba973e60]] | enumConstantDeclaration |
| 3 | 2 | [[#ba973e60]] | bodyDeclaration |
| 3 | 3 | [[#ba973e60]] | bodyDeclaration |
| 3 | 4 | [[#ba973e60]] | bodyDeclaration |
| 3 | 5 | [[#ba973e60]] | bodyDeclaration |
| 3 | 6 | [[#ba973e60]] | typeDeclaration |
| 4 | 1 | [[#a53961c0]] | enumDeclaration |
| 4 | 2 | [[#a53961c0]] | enumDeclaration |
| 4 | 3 | [[#a53961c0]] | typeDeclaration |
| 4 | 4 | [[#a53961c0]] | anonymousClassDeclaration |
| 4 | 5 | [[#a53961c0]] | annotationTypeDeclaration |
| 4 | 6 | [[#a53961c0]] | compilationUnit |