Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
16 | 4 | 3 | 0.982 | class_body_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 16 | 143 | plugins/org.eclipse.jdt.debug/jdi/org/eclipse/jdi/internal/ArrayTypeImpl.java |
2 | 16 | 367 | plugins/org.eclipse.jdt.debug/jdi/org/eclipse/jdi/internal/ClassTypeImpl.java |
3 | 16 | 206 | plugins/org.eclipse.jdt.debug/jdi/org/eclipse/jdi/internal/ThreadGroupReferenceImpl.java |
4 | 16 | 535 | plugins/org.eclipse.jdt.debug/jdi/org/eclipse/jdi/internal/ThreadReferenceImpl.java |
| ||||
/** * @return Reads JDWP representation and returns new instance. */ public static ArrayTypeImpl read(MirrorImpl target, 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$ if (ID.isNull()) return null; ArrayTypeImpl mirror = (ArrayTypeImpl) vmImpl.getCachedMirror(ID); if (mirror == null) { mirror = new ArrayTypeImpl(vmImpl, ID); vmImpl.addCachedMirror(mirror); } return mirror; } |
| ||||
/* * @return Reads ID and returns known ReferenceTypeImpl with that ID, or if ID is unknown a newly created ReferenceTypeImpl. */ public static ClassTypeImpl read(MirrorImpl target, 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$ if (ID.isNull()) return null; ClassTypeImpl mirror = (ClassTypeImpl) vmImpl.getCachedMirror(ID); if (mirror == null) { mirror = new ClassTypeImpl(vmImpl, ID); vmImpl.addCachedMirror(mirror); } return mirror; } |
| ||||
/** * @return Reads JDWP representation and returns new instance. */ public static ThreadGroupReferenceImpl read(MirrorImpl target, DataInputStream in) throws IOException { VirtualMachineImpl vmImpl = target.virtualMachineImpl(); JdwpThreadGroupID ID = new JdwpThreadGroupID(vmImpl); ID.read(in); if (target.fVerboseWriter != null) target.fVerboseWriter.println("threadGroupReference", ID.value()); //$NON-NLS-1$ if (ID.isNull()) return null; ThreadGroupReferenceImpl mirror = (ThreadGroupReferenceImpl) vmImpl.getCachedMirror(ID); if (mirror == null) { mirror = new ThreadGroupReferenceImpl(vmImpl, ID); vmImpl.addCachedMirror(mirror); } return mirror; } |
| ||||
/** * @return Reads JDWP representation and returns new instance. */ public static ThreadReferenceImpl read(MirrorImpl target, DataInputStream in) throws IOException { VirtualMachineImpl vmImpl = target.virtualMachineImpl(); JdwpThreadID ID = new JdwpThreadID(vmImpl); ID.read(in); if (target.fVerboseWriter != null) target.fVerboseWriter.println("threadReference", ID.value()); //$NON-NLS-1$ if (ID.isNull()) return null; ThreadReferenceImpl mirror = (ThreadReferenceImpl) vmImpl.getCachedMirror(ID); if (mirror == null) { mirror = new ThreadReferenceImpl(vmImpl, ID); vmImpl.addCachedMirror(mirror); } return mirror; } |
| |||
/** * @return Reads JDWP representation and returns new instance. */ /* * @return Reads ID and returns known ReferenceTypeImpl with that ID, or if ID is unknown a newly created ReferenceTypeImpl. */ public static [[#variableb94a6b00]] read(MirrorImpl target, DataInputStream in) throws IOException { VirtualMachineImpl vmImpl = target.virtualMachineImpl(); [[#variableb94a6860]] ID = new [[#variableb94a6860]](vmImpl); ID.read(in); if (target.fVerboseWriter != null) target.fVerboseWriter.println( [[#variableb94a6bc0]], ID.value()); //$NON-NLS-1$ if (ID.isNull()) return null; [[#variableb94a6b00]] mirror = ( [[#variableb94a6b00]]) vmImpl.getCachedMirror(ID); if (mirror == null) { mirror = new [[#variableb94a6b00]](vmImpl, ID); vmImpl.addCachedMirror(mirror); } return mirror; } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#b94a6b00]] | ThreadReferenceImpl |
1 | 2 | [[#b94a6b00]] | ThreadGroupReferenceImpl |
1 | 3 | [[#b94a6b00]] | ClassTypeImpl |
1 | 4 | [[#b94a6b00]] | ArrayTypeImpl |
2 | 1 | [[#b94a6860]] | JdwpThreadID |
2 | 2 | [[#b94a6860]] | JdwpThreadGroupID |
2 | 3 | [[#b94a6860]] | JdwpClassID |
2 | 4 | [[#b94a6860]] | JdwpArrayID |
3 | 1 | [[#b94a6bc0]] | "threadReference" |
3 | 2 | [[#b94a6bc0]] | "threadGroupReference" |
3 | 3 | [[#b94a6bc0]] | "classType" |
3 | 4 | [[#b94a6bc0]] | "arrayType" |