CloneSet558


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
30260.963class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
130821
plugins/org.eclipse.jdt.debug/jdi/org/eclipse/jdi/internal/ReferenceTypeImpl.java
230995
plugins/org.eclipse.jdt.debug/jdi/org/eclipse/jdi/internal/ReferenceTypeImpl.java
Clone Instance
1
Line Count
30
Source Line
821
Source File
plugins/org.eclipse.jdt.debug/jdi/org/eclipse/jdi/internal/ReferenceTypeImpl.java

        /** 
         * @return Returns a list containing each Field declared in this type. 
         */
        public List fields() {
                if (fFields != null) {
                        return fFields;
                }

                // Note: Fields are returned in the order they occur in the class file, therefore their
                // order in this list can be used for comparisons.
                initJdwpRequest();
                try {
                        boolean withGenericSignature = virtualMachineImpl().isJdwpVersionGreaterOrEqual(1, 5);
                        int jdwpCommand = withGenericSignature ? JdwpCommandPacket.RT_FIELDS_WITH_GENERIC:  JdwpCommandPacket.RT_FIELDS;
                        JdwpReplyPacket replyPacket = requestVM(jdwpCommand, this );
                        defaultReplyErrorHandler(replyPacket.errorCode());
                        DataInputStream replyData = replyPacket.dataInStream();
                        List elements = new ArrayList();
                        int nrOfElements = readInt("elements", replyData); //$NON-NLS-1$
                        for (int i = 0; i < nrOfElements; i++) {
                                FieldImpl elt = FieldImpl.readWithNameSignatureModifiers(this, this, withGenericSignature, replyData);
                                if (elt == null) {
                                        continue ;
                                }
                                elements.add(elt);
                        }
                        fFields = elements;
                        return fFields;
                } catch (IOException e) {
                        defaultIOExceptionHandler(e);
                        return null;
                  }
                  finally {
                        handledJdwpRequest();
                  }
        }


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

        /**
         * @return Returns a list containing each Method declared directly in this type.
         */
        public List methods() {
                // Note that ArrayReference overwrites this method by returning an empty list.
                if (fMethods != null)
                        return fMethods;

                // Note: Methods are returned in the order they occur in the class file, therefore their
                // order in this list can be used for comparisons.
                initJdwpRequest();
                try {
                        boolean withGenericSignature = virtualMachineImpl().isJdwpVersionGreaterOrEqual(1, 5);
                        int jdwpCommand = withGenericSignature ? JdwpCommandPacket.RT_METHODS_WITH_GENERIC:  JdwpCommandPacket.RT_METHODS;
                        JdwpReplyPacket replyPacket = requestVM(jdwpCommand, this );
                        defaultReplyErrorHandler(replyPacket.errorCode());
                        DataInputStream replyData = replyPacket.dataInStream();
                        List elements = new ArrayList();
                        int nrOfElements = readInt("elements", replyData); //$NON-NLS-1$
                        for (int i = 0; i < nrOfElements; i++) {
                                MethodImpl elt = MethodImpl.readWithNameSignatureModifiers(this, this, withGenericSignature, replyData);
                                if (elt == null) {
                                        continue ;
                                }
                                elements.add(elt);
                        }
                        fMethods = elements;
                        return fMethods;
                } catch (IOException e) {
                        defaultIOExceptionHandler(e);
                        return null;
                  }
                  finally {
                        handledJdwpRequest();
                  }
        }


Clone AbstractionParameter Count: 6Parameter Bindings

/** 
         * @return Returns a list containing each Field declared in this type. 
         */
/**
         * @return Returns a list containing each Method declared directly in this type.
         */
public List  [[#variableb31d1ee0]]() {
  // Note that ArrayReference overwrites this method by returning an empty list.
  if ( [[#variableb31d1e80]]!= null)
     [[#variableb31d1de0]]
  // Note: Fields are returned in the order they occur in the class file, therefore their
  // Note: Methods are returned in the order they occur in the class file, therefore their
  // order in this list can be used for comparisons.
  initJdwpRequest();
  try {
    boolean withGenericSignature = virtualMachineImpl().isJdwpVersionGreaterOrEqual(1, 5);
    int jdwpCommand = withGenericSignature ? JdwpCommandPacket. [[#variableb31d1d80]]: JdwpCommandPacket. [[#variableb31d1d00]];
    JdwpReplyPacket replyPacket = requestVM(jdwpCommand, this );
    defaultReplyErrorHandler(replyPacket.errorCode());
    DataInputStream replyData = replyPacket.dataInStream();
    List elements = new ArrayList();
    int nrOfElements = readInt("elements", replyData); //$NON-NLS-1$
    for (int i = 0; i < nrOfElements; i++) {
       [[#variableb31d1c20]] elt = [[#variableb31d1c20]].readWithNameSignatureModifiers(this, this, withGenericSignature, replyData);
      if (elt == null) {
        continue ;
      }
      elements.add(elt);
    }
     [[#variableb31d1e80]]= elements;
    return [[#variableb31d1e80]];
  }
  catch (IOException e) {
    defaultIOExceptionHandler(e);
    return null;
  }
  finally {
    handledJdwpRequest();
  }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#b31d1ee0]]
fields 
12[[#b31d1ee0]]
methods 
21[[#b31d1e80]]
fFields 
22[[#b31d1e80]]
fMethods 
31[[#b31d1de0]]
{
  return fFields;
} 
32[[#b31d1de0]]
return fMethods; 
41[[#b31d1d80]]
RT_FIELDS_WITH_GENERIC 
42[[#b31d1d80]]
RT_METHODS_WITH_GENERIC 
51[[#b31d1d00]]
RT_FIELDS 
52[[#b31d1d00]]
RT_METHODS 
61[[#b31d1c20]]
FieldImpl 
62[[#b31d1c20]]
MethodImpl