CloneSet3734


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
8260.961class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
18808
plugins/org.eclipse.jdt.debug/jdi/org/eclipse/jdi/internal/ReferenceTypeImpl.java
28857
plugins/org.eclipse.jdt.debug/jdi/org/eclipse/jdi/internal/ReferenceTypeImpl.java
Clone Instance
1
Line Count
8
Source Line
808
Source File
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;
        }


Clone Instance
2
Line Count
8
Source Line
857
Source File
plugins/org.eclipse.jdt.debug/jdi/org/eclipse/jdi/internal/ReferenceTypeImpl.java

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


Clone AbstractionParameter Count: 6Parameter Bindings

/** 
         * @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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#50e5de20]]
Field 
12[[#50e5de20]]
FieldImpl 
21[[#50e5dda0]]
fieldByName 
22[[#50e5dda0]]
findField 
31[[#50e5dce0]]
String 
32[[#50e5dce0]]
JdwpFieldID 
41[[#50e5dc80]]
name 
42[[#50e5dc80]]
fieldID 
51[[#50e5dc20]]
visibleFields 
52[[#50e5dc20]]
fields 
61[[#50e5dbc0]]
name 
62[[#50e5dbc0]]
getFieldID