Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
14 | 2 | 6 | 0.951 | class_body_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 15 | 52 | plugins/org.eclipse.jdt.debug/jdi/org/eclipse/jdi/internal/StringReferenceImpl.java |
2 | 14 | 428 | plugins/org.eclipse.jdt.debug/jdi/org/eclipse/jdi/internal/ThreadReferenceImpl.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(); } } |
| ||||
/** * @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(); } } |
| |||
/** * @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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#5ad03de0]] | int |
1 | 2 | [[#5ad03de0]] | String |
2 | 1 | [[#5ad03da0]] | suspendCount |
2 | 2 | [[#5ad03da0]] | value |
3 | 1 | [[#5ad03c40]] | TR_SUSPEND_COUNT |
3 | 2 | [[#5ad03c40]] | SR_VALUE |
4 | 1 | [[#5a2e7060]] | readInt |
4 | 2 | [[#5a2e7060]] | readString |
5 | 1 | [[#55902ce0]] | "suspend count" |
5 | 2 | [[#55902ce0]] | "value" |
6 | 1 | [[#5ad03d00]] | 0 |
6 | 2 | [[#5ad03d00]] | null |