Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
10 | 2 | 5 | 0.955 | class_body_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 10 | 199 | plugins/org.eclipse.jdt.debug/jdi/org/eclipse/jdi/internal/connect/PacketReceiveManager.java |
2 | 10 | 214 | plugins/org.eclipse.jdt.debug/jdi/org/eclipse/jdi/internal/connect/PacketReceiveManager.java |
| ||||
/** * @return Returns and removes a specified command packet from the command * packet list. */ private JdwpCommandPacket removeCommandPacket(int command) { ListIterator iter = fCommandPackets.listIterator(); while (iter.hasNext()) { JdwpCommandPacket packet = (JdwpCommandPacket) iter.next(); if (packet.getCommand() == command) { iter.remove(); return packet; } } return null; } |
| ||||
/** * @return Returns a specified reply packet from the reply packet list. */ private JdwpReplyPacket removeReplyPacket(int id) { ListIterator iter = fReplyPackets.listIterator(); while (iter.hasNext()) { JdwpReplyPacket packet = (JdwpReplyPacket) iter.next(); if (packet.getId() == id) { iter.remove(); return packet; } } return null; } |
| |||
/** * @return Returns and removes a specified command packet from the command * packet list. */ /** * @return Returns a specified reply packet from the reply packet list. */ private [[#variable9d495dc0]] [[#variable9d495d00]](int [[#variable9d495c80]]) { ListIterator iter = [[#variable9d495be0]].listIterator(); while (iter.hasNext()) { [[#variable9d495dc0]] packet = ( [[#variable9d495dc0]]) iter.next(); if (packet. [[#variable9d495b40]]() == [[#variable9d495c80]]) { iter.remove(); return packet; } } return null; } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#9d495dc0]] | JdwpCommandPacket |
1 | 2 | [[#9d495dc0]] | JdwpReplyPacket |
2 | 1 | [[#9d495d00]] | removeCommandPacket |
2 | 2 | [[#9d495d00]] | removeReplyPacket |
3 | 1 | [[#9d495c80]] | command |
3 | 2 | [[#9d495c80]] | id |
4 | 1 | [[#9d495be0]] | fCommandPackets |
4 | 2 | [[#9d495be0]] | fReplyPackets |
5 | 1 | [[#9d495b40]] | getCommand |
5 | 2 | [[#9d495b40]] | getId |