Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
6 | 2 | 1 | 0.985 | statement_sequence[3] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 6 | 139 | plugins/org.eclipse.jdt.core/search/org/eclipse/jdt/internal/core/search/matching/FieldLocator.java |
2 | 6 | 313 | plugins/org.eclipse.jdt.core/search/org/eclipse/jdt/internal/core/search/matching/MethodLocator.java |
| ||||
// need exact match to be able to open on type ref if (accuracy != SearchMatch.A_ACCURATE) return; // element that references the field must be included in the enclosing element DeclarationOfAccessedFieldsPattern declPattern = (DeclarationOfAccessedFieldsPattern) this.pattern; while (element != null && !declPattern.enclosingElement.equals(element)) element = element.getParent(); |
| ||||
// need exact match to be able to open on type ref if (accuracy != SearchMatch.A_ACCURATE) return; // element that references the method must be included in the enclosing element DeclarationOfReferencedMethodsPattern declPattern = (DeclarationOfReferencedMethodsPattern) this.pattern; while (element != null && !declPattern.enclosingElement.equals(element)) element = element.getParent(); |
| |||
// need exact match to be able to open on type ref if (accuracy != SearchMatch.A_ACCURATE) return; [[#variableb80dda40]] declPattern = ( [[#variableb80dda40]]) this.pattern; while (element != null && !declPattern.enclosingElement.equals(element)) element = element.getParent(); |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#b80dda40]] | // element that references the method must be included in the enclosing element DeclarationOfReferencedMethodsPattern |
1 | 2 | [[#b80dda40]] | // element that references the field must be included in the enclosing element DeclarationOfAccessedFieldsPattern |