CloneSet640


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
23230.988class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
123210
plugins/org.eclipse.jdt.debug/jdi/org/eclipse/jdi/internal/ArrayTypeImpl.java
223388
plugins/org.eclipse.jdt.debug/jdi/org/eclipse/jdi/internal/ClassTypeImpl.java
Clone Instance
1
Line Count
23
Source Line
210
Source File
plugins/org.eclipse.jdt.debug/jdi/org/eclipse/jdi/internal/ArrayTypeImpl.java

        /**
         * @return Reads JDWP representation and returns new instance.
         */
        public static ArrayTypeImpl readWithSignature(MirrorImpl target, boolean withGenericSignature, DataInputStream in) throws IOException {
                VirtualMachineImpl vmImpl = target.virtualMachineImpl();
                JdwpArrayID ID = new JdwpArrayID(vmImpl);
                ID.read(in);
                if (target.fVerboseWriter != null)
                        target.fVerboseWriter.println("arrayType", ID.value()); //$NON-NLS-1$

                String signature = target.readString("signature", in); //$NON-NLS-1$
                String genericSignature = null;
                if (withGenericSignature) {
                        genericSignature = target.readString("generic signature", in); //$NON-NLS-1$
                }
                if (ID.isNull())
                        return null;

                ArrayTypeImpl mirror = (ArrayTypeImpl) vmImpl.getCachedMirror(ID);
                if (mirror == null) {
                        mirror = new ArrayTypeImpl(vmImpl, ID);
                        vmImpl.addCachedMirror(mirror);
                }
                mirror.setSignature(signature);
                mirror.setGenericSignature(genericSignature);
                return mirror;
        }


Clone Instance
2
Line Count
23
Source Line
388
Source File
plugins/org.eclipse.jdt.debug/jdi/org/eclipse/jdi/internal/ClassTypeImpl.java

        /*
         * @return Reads ID and returns known ReferenceTypeImpl with that ID, or if ID is unknown a newly created ReferenceTypeImpl.
         */
        public static ClassTypeImpl readWithSignature(MirrorImpl target, boolean withGenericSignature, DataInputStream in) throws IOException {
                VirtualMachineImpl vmImpl = target.virtualMachineImpl();
                JdwpClassID ID = new JdwpClassID(vmImpl);
                ID.read(in);
                if (target.fVerboseWriter != null)
                        target.fVerboseWriter.println("classType", ID.value()); //$NON-NLS-1$

                String signature = target.readString("signature", in); //$NON-NLS-1$
                String genericSignature = null;
                if (withGenericSignature) {
                        genericSignature = target.readString("generic signature", in); //$NON-NLS-1$
                }
                if (ID.isNull())
                        return null;

                ClassTypeImpl mirror = (ClassTypeImpl) vmImpl.getCachedMirror(ID);
                if (mirror == null) {
                        mirror = new ClassTypeImpl(vmImpl, ID);
                        vmImpl.addCachedMirror(mirror);
                }
                mirror.setSignature(signature);
                mirror.setGenericSignature(genericSignature);
                return mirror;
        }


Clone AbstractionParameter Count: 3Parameter Bindings

/*
         * @return Reads ID and returns known ReferenceTypeImpl with that ID, or if ID is unknown a newly created ReferenceTypeImpl.
         */
/**
         * @return Reads JDWP representation and returns new instance.
         */
public static [[#variable9d9a24e0]] readWithSignature(MirrorImpl target, boolean withGenericSignature, DataInputStream in) throws IOException {
  VirtualMachineImpl vmImpl = target.virtualMachineImpl();
   [[#variable9d9a2440]] ID = new [[#variable9d9a2440]](vmImpl);
  ID.read(in);
  if (target.fVerboseWriter != null)
    target.fVerboseWriter.println( [[#variable9d9a2320]], ID.value()); //$NON-NLS-1$
  String signature = target.readString("signature", in); //$NON-NLS-1$
  String genericSignature = null;
  if (withGenericSignature) {
    genericSignature = target.readString("generic signature", in); //$NON-NLS-1$
  }
  if (ID.isNull())
    return null;
   [[#variable9d9a24e0]] mirror = ( [[#variable9d9a24e0]]) vmImpl.getCachedMirror(ID);
  if (mirror == null) {
    mirror = new [[#variable9d9a24e0]](vmImpl, ID);
    vmImpl.addCachedMirror(mirror);
  }
  mirror.setSignature(signature);
  mirror.setGenericSignature(genericSignature);
  return mirror;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#9d9a24e0]]
ClassTypeImpl 
12[[#9d9a24e0]]
ArrayTypeImpl 
21[[#9d9a2440]]
JdwpClassID 
22[[#9d9a2440]]
JdwpArrayID 
31[[#9d9a2320]]
"classType" 
32[[#9d9a2320]]
"arrayType"