CloneSet3788


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
10250.955class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
110199
plugins/org.eclipse.jdt.debug/jdi/org/eclipse/jdi/internal/connect/PacketReceiveManager.java
210214
plugins/org.eclipse.jdt.debug/jdi/org/eclipse/jdi/internal/connect/PacketReceiveManager.java
Clone Instance
1
Line Count
10
Source Line
199
Source File
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;
    }


Clone Instance
2
Line Count
10
Source Line
214
Source File
plugins/org.eclipse.jdt.debug/jdi/org/eclipse/jdi/internal/connect/PacketReceiveManager.java

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


Clone AbstractionParameter Count: 5Parameter Bindings

/**
     * @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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#9d495dc0]]
JdwpCommandPacket 
12[[#9d495dc0]]
JdwpReplyPacket 
21[[#9d495d00]]
removeCommandPacket 
22[[#9d495d00]]
removeReplyPacket 
31[[#9d495c80]]
command 
32[[#9d495c80]]
id 
41[[#9d495be0]]
fCommandPackets 
42[[#9d495be0]]
fReplyPackets 
51[[#9d495b40]]
getCommand 
52[[#9d495b40]]
getId