Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
47 | 2 | 0 | 1.000 | class_body_declarations[9] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 47 | 166 | plugins/org.eclipse.jdt.debug/jdi/org/eclipse/jdi/internal/jdwp/JdwpCommandPacket.java |
2 | 47 | 169 | plugins/org.eclipse.jdt.debug/jdi/org/eclipse/jdi/internal/spy/JdwpCommandPacket.java |
| ||||
/** Mapping of command codes to strings. */ private static Map fgCommandMap = null; /** Next id to be assigned. */ private static int fgNextId = 1; /** Command, note that this field is 256 * JDWP CommandSet (unsigned) + JDWP Command. */ private int fCommand; /** * Creates new JdwpCommandPacket. */ protected JdwpCommandPacket() { } /** * Creates new JdwpCommandPacket. */ public JdwpCommandPacket(int command) { setCommand(command); setId(getNewId()); } /** * @return Returns unique id for command packet. */ public static synchronized int getNewId() { return fgNextId++; } /** * @return Returns JDWP command set of packet. */ public byte getCommandSet() { return (byte) (fCommand >>> 8); } /** * @return Returns 256 * JDWP CommandSet (unsigned) + JDWP Command. */ public int getCommand() { return fCommand; } /** * Assigns command (256 * JDWP CommandSet (unsigned) + JDWP Command) */ public void setCommand(int command) { fCommand = command; } |
| ||||
/** Mapping of command codes to strings. */ private static Map fgCommandMap = null; /** Next id to be assigned. */ private static int fgNextId = 1; /** Command, note that this field is 256 * JDWP CommandSet (unsigned) + JDWP Command. */ private int fCommand; /** * Creates new JdwpCommandPacket. */ protected JdwpCommandPacket() { } /** * Creates new JdwpCommandPacket. */ public JdwpCommandPacket(int command) { setCommand(command); setId(getNewId()); } /** * @return Returns unique id for command packet. */ public static synchronized int getNewId() { return fgNextId++; } /** * @return Returns JDWP command set of packet. */ public byte getCommandSet() { return (byte) (fCommand >>> 8); } /** * @return Returns 256 * JDWP CommandSet (unsigned) + JDWP Command. */ public int getCommand() { return fCommand; } /** * Assigns command (256 * JDWP CommandSet (unsigned) + JDWP Command) */ public void setCommand(int command) { fCommand = command; } |
| |||
/** Mapping of command codes to strings. */ private static Map fgCommandMap = null; /** Next id to be assigned. */ private static int fgNextId = 1; /** Command, note that this field is 256 * JDWP CommandSet (unsigned) + JDWP Command. */ private int fCommand; /** * Creates new JdwpCommandPacket. */ protected JdwpCommandPacket() { } /** * Creates new JdwpCommandPacket. */ public JdwpCommandPacket(int command) { setCommand(command); setId(getNewId()); } /** * @return Returns unique id for command packet. */ public static synchronized int getNewId() { return fgNextId++; } /** * @return Returns JDWP command set of packet. */ public byte getCommandSet() { return (byte) (fCommand >>> 8); } /** * @return Returns 256 * JDWP CommandSet (unsigned) + JDWP Command. */ public int getCommand() { return fCommand; } /** * Assigns command (256 * JDWP CommandSet (unsigned) + JDWP Command) */ public void setCommand(int command) { fCommand = command; } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
None |