Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
9 | 2 | 2 | 0.975 | block |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 9 | 547 | E:/TSE/Projects-CloneDR/emf-2.4.1/src/org/eclipse/emf/ecore/util/BasicFeatureMap.java |
2 | 9 | 1310 | E:/TSE/Projects-CloneDR/emf-2.4.1/src/org/eclipse/emf/ecore/util/BasicFeatureMap.java |
| |||||
{ FeatureMapUtil.Validator validator = FeatureMapUtil.getValidator(owner.eClass(), entryFeature); Entry[] entries = (Entry[]) data; for (int i = 0; i < size; ++i) { Entry otherEntry = entries[i]; if (validator.isValid(otherEntry.getEStructuralFeature())) { throw new IllegalArgumentException("The multiplicity constraint is violated"); } } } |
| |||||
{ FeatureMapUtil.Validator validator = FeatureMapUtil.getValidator(owner.eClass(), feature); Entry[] entries = (Entry[]) data; for (int i = 0; i < size; ++i) { Entry entry = entries[i]; if (validator.isValid(entry.getEStructuralFeature())) { throw new IllegalArgumentException("The multiplicity constraint is violated"); } } } |
| |||
{ FeatureMapUtil.Validator validator = FeatureMapUtil.getValidator(owner.eClass(), [[#variable172b6580]]); Entry[] entries = (Entry[]) data; for (int i = 0; i < size; ++i) { Entry [[#variable172b77c0]]= entries[i]; if (validator.isValid( [[#variable172b77c0]].getEStructuralFeature())) { throw new IllegalArgumentException("The multiplicity constraint is violated"); } } } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#172b6580]] | entryFeature |
1 | 2 | [[#172b6580]] | feature |
2 | 1 | [[#172b77c0]] | otherEntry |
2 | 2 | [[#172b77c0]] | entry |