Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
17 | 2 | 4 | 0.980 | class_body_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 17 | 118 | plugins/org.eclipse.jdt.debug/model/org/eclipse/jdt/internal/debug/core/model/JDIReferenceType.java |
2 | 17 | 140 | plugins/org.eclipse.jdt.debug/model/org/eclipse/jdt/internal/debug/core/model/JDIReferenceType.java |
| ||||
/* (non-Javadoc) * @see org.eclipse.jdt.debug.core.IJavaReferenceType#getAllFieldNames() */ public String[] getAllFieldNames() throws DebugException { if (fAllFields == null) { try { List fields = ((ReferenceType) getUnderlyingType()).allFields(); fAllFields = new String[fields.size()]; Iterator iterator = fields.iterator(); int i = 0; while (iterator.hasNext()) { Field field = (Field) iterator.next(); fAllFields[i] = field.name(); i++; } } catch (RuntimeException e) { targetRequestFailed(JDIDebugModelMessages.JDIReferenceType_2, e); } } return fAllFields; } |
| ||||
/* (non-Javadoc) * @see org.eclipse.jdt.debug.core.IJavaReferenceType#getDeclaredFieldNames() */ public String[] getDeclaredFieldNames() throws DebugException { if (fDeclaredFields == null) { try { List fields = ((ReferenceType) getUnderlyingType()).fields(); fDeclaredFields = new String[fields.size()]; Iterator iterator = fields.iterator(); int i = 0; while (iterator.hasNext()) { Field field = (Field) iterator.next(); fDeclaredFields[i] = field.name(); i++; } } catch (RuntimeException e) { targetRequestFailed(JDIDebugModelMessages.JDIReferenceType_3, e); } } return fDeclaredFields; } |
| |||
/* (non-Javadoc) * @see org.eclipse.jdt.debug.core.IJavaReferenceType#getAllFieldNames() */ /* (non-Javadoc) * @see org.eclipse.jdt.debug.core.IJavaReferenceType#getDeclaredFieldNames() */ public String[] [[#variable53226800]]() throws DebugException { if ( [[#variable76c542a0]]== null) { try { List fields = ((ReferenceType) getUnderlyingType()). [[#variablec07353a0]](); [[#variable76c542a0]]= new String[fields.size()]; Iterator iterator = fields.iterator(); int i = 0; while (iterator.hasNext()) { Field field = (Field) iterator.next(); [[#variable76c542a0]][i] = field.name(); i++; } } catch (RuntimeException e) { targetRequestFailed(JDIDebugModelMessages. [[#variable53226840]], e); } } return [[#variable76c542a0]]; } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#53226800]] | getAllFieldNames |
1 | 2 | [[#53226800]] | getDeclaredFieldNames |
2 | 1 | [[#76c542a0]] | fAllFields |
2 | 2 | [[#76c542a0]] | fDeclaredFields |
3 | 1 | [[#c07353a0]] | allFields |
3 | 2 | [[#c07353a0]] | fields |
4 | 1 | [[#53226840]] | JDIReferenceType_2 |
4 | 2 | [[#53226840]] | JDIReferenceType_3 |