Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
8 | 2 | 6 | 0.961 | class_body_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 8 | 808 | plugins/org.eclipse.jdt.debug/jdi/org/eclipse/jdi/internal/ReferenceTypeImpl.java |
2 | 8 | 857 | plugins/org.eclipse.jdt.debug/jdi/org/eclipse/jdi/internal/ReferenceTypeImpl.java |
| ||||
/** * @return Returns the visible Field with the given non-ambiguous name. */ public Field fieldByName(String name) { Iterator iter = visibleFields().iterator(); while (iter.hasNext()) { FieldImpl field = (FieldImpl) iter.next(); if (field.name().equals(name)) return field; } return null; } |
| ||||
/** * @return Returns FieldImpl of a field in the reference specified by a given fieldID, or null if not found. */ public FieldImpl findField(JdwpFieldID fieldID) { Iterator iter = fields().iterator(); while (iter.hasNext()) { FieldImpl field = (FieldImpl) iter.next(); if (field.getFieldID().equals(fieldID)) return field; } return null; } |
| |||
/** * @return Returns the visible Field with the given non-ambiguous name. */ /** * @return Returns FieldImpl of a field in the reference specified by a given fieldID, or null if not found. */ public [[#variable50e5de20]] [[#variable50e5dda0]]( [[#variable50e5dce0]] [[#variable50e5dc80]]) { Iterator iter = [[#variable50e5dc20]]().iterator(); while (iter.hasNext()) { FieldImpl field = (FieldImpl) iter.next(); if (field. [[#variable50e5dbc0]]().equals( [[#variable50e5dc80]])) return field; } return null; } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#50e5de20]] | Field |
1 | 2 | [[#50e5de20]] | FieldImpl |
2 | 1 | [[#50e5dda0]] | fieldByName |
2 | 2 | [[#50e5dda0]] | findField |
3 | 1 | [[#50e5dce0]] | String |
3 | 2 | [[#50e5dce0]] | JdwpFieldID |
4 | 1 | [[#50e5dc80]] | name |
4 | 2 | [[#50e5dc80]] | fieldID |
5 | 1 | [[#50e5dc20]] | visibleFields |
5 | 2 | [[#50e5dc20]] | fields |
6 | 1 | [[#50e5dbc0]] | name |
6 | 2 | [[#50e5dbc0]] | getFieldID |