Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
15 | 2 | 3 | 0.992 | statement_sequence_member |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 15 | 109 | plugins/org.eclipse.jdt.debug/jdi/org/eclipse/jdi/internal/connect/PacketReceiveManager.java |
2 | 15 | 66 | plugins/org.eclipse.jdt.debug/jdi/org/eclipse/jdi/internal/connect/PacketSendManager.java |
| ||||
// Check for an IO Exception. if (VMIsDisconnected()) { String message; if (getDisconnectException() == null) { message = ConnectMessages.PacketReceiveManager_Got_IOException_from_Virtual_Machine_1; } //end if else { String exMessage = getDisconnectException().getMessage(); if (exMessage == null) { message = MessageFormat.format(ConnectMessages.PacketReceiveManager_Got__0__from_Virtual_Machine_1, new String[] { getDisconnectException().getClass().getName() } ); } //end if else { message = MessageFormat.format(ConnectMessages.PacketReceiveManager_Got__0__from_Virtual_Machine___1__1, new String[] { getDisconnectException().getClass().getName(), exMessage } ); } //end else } //end else throw new VMDisconnectedException(message); } |
| ||||
if (VMIsDisconnected()) { String message; if (getDisconnectException() == null) { message = ConnectMessages.PacketSendManager_Got_IOException_from_Virtual_Machine_1; } //end if else { String exMessage = getDisconnectException().getMessage(); if (exMessage == null) { message = MessageFormat.format(ConnectMessages.PacketSendManager_Got__0__from_Virtual_Machine_1, new String[] { getDisconnectException().getClass().getName() } ); } //end if else { message = MessageFormat.format(ConnectMessages.PacketSendManager_Got__0__from_Virtual_Machine___1__1, new String[] { getDisconnectException().getClass().getName(), exMessage } ); } //end else } //end else throw new VMDisconnectedException(message); } |
| |||
// Check for an IO Exception. if (VMIsDisconnected()) { String message; if (getDisconnectException() == null) { message = ConnectMessages. [[#variablebc2e2f60]]; } //end if else { String exMessage = getDisconnectException().getMessage(); if (exMessage == null) { message = MessageFormat.format(ConnectMessages. [[#variablebc2e3000]], new String[] { getDisconnectException().getClass().getName() } ); } //end if else { message = MessageFormat.format(ConnectMessages. [[#variablebc2e2fc0]], new String[] { getDisconnectException().getClass().getName(), exMessage } ); } //end else } //end else throw new VMDisconnectedException(message); } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#bc2e2f60]] | PacketSendManager_Got_IOException_from_Virtual_Machine_1 |
1 | 2 | [[#bc2e2f60]] | PacketReceiveManager_Got_IOException_from_Virtual_Machine_1 |
2 | 1 | [[#bc2e3000]] | PacketSendManager_Got__0__from_Virtual_Machine_1 |
2 | 2 | [[#bc2e3000]] | PacketReceiveManager_Got__0__from_Virtual_Machine_1 |
3 | 1 | [[#bc2e2fc0]] | PacketSendManager_Got__0__from_Virtual_Machine___1__1 |
3 | 2 | [[#bc2e2fc0]] | PacketReceiveManager_Got__0__from_Virtual_Machine___1__1 |