CloneSet401


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
16430.982class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
116143
plugins/org.eclipse.jdt.debug/jdi/org/eclipse/jdi/internal/ArrayTypeImpl.java
216367
plugins/org.eclipse.jdt.debug/jdi/org/eclipse/jdi/internal/ClassTypeImpl.java
316206
plugins/org.eclipse.jdt.debug/jdi/org/eclipse/jdi/internal/ThreadGroupReferenceImpl.java
416535
plugins/org.eclipse.jdt.debug/jdi/org/eclipse/jdi/internal/ThreadReferenceImpl.java
Clone Instance
1
Line Count
16
Source Line
143
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 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;
        }


Clone Instance
2
Line Count
16
Source Line
367
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 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;
        }


Clone Instance
3
Line Count
16
Source Line
206
Source File
plugins/org.eclipse.jdt.debug/jdi/org/eclipse/jdi/internal/ThreadGroupReferenceImpl.java

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


Clone Instance
4
Line Count
16
Source Line
535
Source File
plugins/org.eclipse.jdt.debug/jdi/org/eclipse/jdi/internal/ThreadReferenceImpl.java

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


Clone AbstractionParameter Count: 3Parameter Bindings

/**
         * @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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#b94a6b00]]
ThreadReferenceImpl 
12[[#b94a6b00]]
ThreadGroupReferenceImpl 
13[[#b94a6b00]]
ClassTypeImpl 
14[[#b94a6b00]]
ArrayTypeImpl 
21[[#b94a6860]]
JdwpThreadID 
22[[#b94a6860]]
JdwpThreadGroupID 
23[[#b94a6860]]
JdwpClassID 
24[[#b94a6860]]
JdwpArrayID 
31[[#b94a6bc0]]
"threadReference" 
32[[#b94a6bc0]]
"threadGroupReference" 
33[[#b94a6bc0]]
"classType" 
34[[#b94a6bc0]]
"arrayType"