Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
23 | 2 | 3 | 0.988 | class_body_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 23 | 210 | plugins/org.eclipse.jdt.debug/jdi/org/eclipse/jdi/internal/ArrayTypeImpl.java |
2 | 23 | 388 | plugins/org.eclipse.jdt.debug/jdi/org/eclipse/jdi/internal/ClassTypeImpl.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; } |
| ||||
/* * @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; } |
| |||
/* * @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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#9d9a24e0]] | ClassTypeImpl |
1 | 2 | [[#9d9a24e0]] | ArrayTypeImpl |
2 | 1 | [[#9d9a2440]] | JdwpClassID |
2 | 2 | [[#9d9a2440]] | JdwpArrayID |
3 | 1 | [[#9d9a2320]] | "classType" |
3 | 2 | [[#9d9a2320]] | "arrayType" |