CloneSet1428


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
17240.980class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
117118
plugins/org.eclipse.jdt.debug/model/org/eclipse/jdt/internal/debug/core/model/JDIReferenceType.java
217140
plugins/org.eclipse.jdt.debug/model/org/eclipse/jdt/internal/debug/core/model/JDIReferenceType.java
Clone Instance
1
Line Count
17
Source Line
118
Source File
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;
        }


Clone Instance
2
Line Count
17
Source Line
140
Source File
plugins/org.eclipse.jdt.debug/model/org/eclipse/jdt/internal/debug/core/model/JDIReferenceType.java

        /* (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;
        }


Clone AbstractionParameter Count: 4Parameter Bindings

/* (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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#53226800]]
getAllFieldNames 
12[[#53226800]]
getDeclaredFieldNames 
21[[#76c542a0]]
fAllFields 
22[[#76c542a0]]
fDeclaredFields 
31[[#c07353a0]]
allFields 
32[[#c07353a0]]
fields 
41[[#53226840]]
JDIReferenceType_2 
42[[#53226840]]
JDIReferenceType_3