Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
7 | 2 | 2 | 0.991 | statement_sequence_member |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 7 | 53 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/actions/GenerateConstructorUsingFieldsContentProvider.java |
2 | 7 | 62 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/actions/GenerateConstructorUsingFieldsContentProvider.java |
| ||||
for (Iterator iterator = fields.iterator(); iterator.hasNext();) { field = (IField) iterator.next(); VariableDeclarationFragment fragment = ASTNodeSearchUtil.getFieldDeclarationFragmentNode(field, fUnit); if (fragment != null) { IVariableBinding binding = fragment.resolveBinding(); if (binding != null) fFields.add(binding); } } |
| ||||
for (Iterator iterator = selected.iterator(); iterator.hasNext();) { field = (IField) iterator.next(); VariableDeclarationFragment fragment = ASTNodeSearchUtil.getFieldDeclarationFragmentNode(field, fUnit); if (fragment != null) { IVariableBinding binding = fragment.resolveBinding(); if (binding != null) fSelected.add(binding); } } |
| |||
for (Iterator iterator = [[#variable967fca80]].iterator(); iterator.hasNext();) { field = (IField) iterator.next(); VariableDeclarationFragment fragment = ASTNodeSearchUtil.getFieldDeclarationFragmentNode(field, fUnit); if (fragment != null) { IVariableBinding binding = fragment.resolveBinding(); if (binding != null) [[#variable967fc9e0]].add(binding); } } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#967fca80]] | fields |
1 | 2 | [[#967fca80]] | selected |
2 | 1 | [[#967fc9e0]] | fFields |
2 | 2 | [[#967fc9e0]] | fSelected |