CloneSet2324


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
14260.951class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
11552
plugins/org.eclipse.jdt.debug/jdi/org/eclipse/jdi/internal/StringReferenceImpl.java
214428
plugins/org.eclipse.jdt.debug/jdi/org/eclipse/jdi/internal/ThreadReferenceImpl.java
Clone Instance
1
Line Count
15
Source Line
52
Source File
plugins/org.eclipse.jdt.debug/jdi/org/eclipse/jdi/internal/StringReferenceImpl.java

        /**
         * @returns Returns the StringReference as a String. 
         */
        public String value() {
                // Note that this information should not be cached.
                initJdwpRequest();
                try {
                        JdwpReplyPacket replyPacket = requestVM(JdwpCommandPacket.SR_VALUE, this );
                        defaultReplyErrorHandler(replyPacket.errorCode());

                        DataInputStream replyData = replyPacket.dataInStream();
                        String result = readString("value", replyData); //$NON-NLS-1$
                        return result;
                } catch (IOException e) {
                        defaultIOExceptionHandler(e);
                        return null;
                  }
                  finally {
                        handledJdwpRequest();
                  }
        }


Clone Instance
2
Line Count
14
Source Line
428
Source File
plugins/org.eclipse.jdt.debug/jdi/org/eclipse/jdi/internal/ThreadReferenceImpl.java

        /**
         * @return Returns the number of pending suspends for this thread. 
         */
        public int suspendCount() {
                // Note that this information should not be cached.
                initJdwpRequest();
                try {
                        JdwpReplyPacket replyPacket = requestVM(JdwpCommandPacket.TR_SUSPEND_COUNT, this );
                        defaultReplyErrorHandler(replyPacket.errorCode());
                        DataInputStream replyData = replyPacket.dataInStream();
                        int result = readInt("suspend count", replyData); //$NON-NLS-1$
                        return result;
                } catch (IOException e) {
                        defaultIOExceptionHandler(e);
                        return 0;
                  }
                  finally {
                        handledJdwpRequest();
                  }
        }


Clone AbstractionParameter Count: 6Parameter Bindings

/**
         * @return Returns the number of pending suspends for this thread. 
         */
/**
         * @returns Returns the StringReference as a String. 
         */
public [[#variable5ad03de0]]  [[#variable5ad03da0]]() {
  // Note that this information should not be cached.
  initJdwpRequest();
  try {
    JdwpReplyPacket replyPacket = requestVM(JdwpCommandPacket. [[#variable5ad03c40]], this );
    defaultReplyErrorHandler(replyPacket.errorCode());
    DataInputStream replyData = replyPacket.dataInStream();
     [[#variable5ad03de0]] result = [[#variable5a2e7060]]( [[#variable55902ce0]], replyData); //$NON-NLS-1$
    return result;
  }
  catch (IOException e) {
    defaultIOExceptionHandler(e);
    return [[#variable5ad03d00]];
  }
  finally {
    handledJdwpRequest();
  }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#5ad03de0]]
int 
12[[#5ad03de0]]
String 
21[[#5ad03da0]]
suspendCount 
22[[#5ad03da0]]
value 
31[[#5ad03c40]]
TR_SUSPEND_COUNT 
32[[#5ad03c40]]
SR_VALUE 
41[[#5a2e7060]]
readInt 
42[[#5a2e7060]]
readString 
51[[#55902ce0]]
"suspend count" 
52[[#55902ce0]]
"value" 
61[[#5ad03d00]]
0 
62[[#5ad03d00]]
null