Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
9 | 3 | 3 | 0.961 | executable_statement |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 9 | 204 | plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/codemanipulation/SortMembersOperation.java |
2 | 9 | 216 | plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/codemanipulation/SortMembersOperation.java |
3 | 9 | 230 | plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/codemanipulation/SortMembersOperation.java |
| ||||
{ AbstractTypeDeclaration type1 = (AbstractTypeDeclaration) bodyDeclaration1; AbstractTypeDeclaration type2 = (AbstractTypeDeclaration) bodyDeclaration2; String name1 = type1.getName().getIdentifier(); String name2 = type2.getName().getIdentifier(); // typedeclarations are sorted by name return compareNames(bodyDeclaration1, bodyDeclaration2, name1, name2); } |
| ||||
{ EnumConstantDeclaration decl1 = (EnumConstantDeclaration) bodyDeclaration1; EnumConstantDeclaration decl2 = (EnumConstantDeclaration) bodyDeclaration2; String name1 = decl1.getName().getIdentifier(); String name2 = decl2.getName().getIdentifier(); // enum constants declarations are sorted by name return compareNames(bodyDeclaration1, bodyDeclaration2, name1, name2); } |
| ||||
{ AnnotationTypeMemberDeclaration decl1 = (AnnotationTypeMemberDeclaration) bodyDeclaration1; AnnotationTypeMemberDeclaration decl2 = (AnnotationTypeMemberDeclaration) bodyDeclaration2; String name1 = decl1.getName().getIdentifier(); String name2 = decl2.getName().getIdentifier(); // enum constants declarations are sorted by name return compareNames(bodyDeclaration1, bodyDeclaration2, name1, name2); } |
| |||
{ [[#variable9e241960]] [[#variable9e2418e0]]= ( [[#variable9e241960]]) bodyDeclaration1; [[#variable9e241960]] [[#variable9e2417a0]]= ( [[#variable9e241960]]) bodyDeclaration2; String name1 = [[#variable9e2418e0]].getName().getIdentifier(); String name2 = [[#variable9e2417a0]].getName().getIdentifier(); // enum constants declarations are sorted by name // typedeclarations are sorted by name return compareNames(bodyDeclaration1, bodyDeclaration2, name1, name2); } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#9e241960]] | EnumConstantDeclaration |
1 | 2 | [[#9e241960]] | AbstractTypeDeclaration |
1 | 3 | [[#9e241960]] | AnnotationTypeMemberDeclaration |
2 | 1 | [[#9e2418e0]] | decl1 |
2 | 2 | [[#9e2418e0]] | type1 |
2 | 3 | [[#9e2418e0]] | decl1 |
3 | 1 | [[#9e2417a0]] | decl2 |
3 | 2 | [[#9e2417a0]] | type2 |
3 | 3 | [[#9e2417a0]] | decl2 |