private int classIndex; /** * the index into the constant pool of the name and type entry * describing the method */ private int nameAndTypeIndex; /** Constructor. */ public InterfaceMethodRefCPInfo() { super(CONSTANT_INTERFACEMETHODREF, 1); } /** * read a constant pool entry from a class stream. * * @param cpStream the DataInputStream which contains the constant pool * entry to be read. * @exception IOException if there is a problem reading the entry from * the stream. */ public void read(DataInputStream cpStream) throws IOException { classIndex = cpStream.readUnsignedShort(); nameAndTypeIndex = cpStream.readUnsignedShort()
private int classIndex; /** * the index into the constant pool which defined the name and type * signature of the method */ private int nameAndTypeIndex; /** Constructor. */ public MethodRefCPInfo() { super(CONSTANT_METHODREF, 1); } /** * read a constant pool entry from a class stream. * * @param cpStream the DataInputStream which contains the constant pool * entry to be read. * @exception IOException if there is a problem reading the entry from * the stream. */ public void read(DataInputStream cpStream) throws IOException { classIndex = cpStream.readUnsignedShort(); nameAndTypeIndex = cpStream.readUnsignedShort()
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/depend/constantpool/InterfaceMethodRefCPInfo.java File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/depend/constantpool/MethodRefCPInfo.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
private int classIndex;
1
private int classIndex;
2
    /**
2
    /**
3
     * the index into the constant pool of the name and type entry
3
     * the index into the constant pool which defined the name and type
4
     * describing the method
4
     * signature of the method
5
     */
5
     */
6
    private int nameAndTypeIndex;
6
    private int nameAndTypeIndex;
7
    /** Constructor. */
7
    /** Constructor. */
8
    public InterfaceMethodRefCPInfo() {
8
    public MethodRefCPInfo() {
9
        super(CONSTANT_INTERFACEMETHODREF, 1);
9
        super(CONSTANT_METHODREF, 1);
10
    }
10
    }
11
    /**
11
    /**
12
     * read a constant pool entry from a class stream.
12
     * read a constant pool entry from a class stream.
13
     *
13
     *
14
     * @param cpStream the DataInputStream which contains the constant pool
14
     * @param cpStream the DataInputStream which contains the constant pool
15
     *      entry to be read.
15
     *      entry to be read.
16
     * @exception IOException if there is a problem reading the entry from
16
     * @exception IOException if there is a problem reading the entry from
17
     *      the stream.
17
     *      the stream.
18
     */
18
     */
19
    public void read(DataInputStream cpStream) throws IOException {
19
    public void read(DataInputStream cpStream) throws IOException {
20
        classIndex = cpStream.readUnsignedShort();
20
        classIndex = cpStream.readUnsignedShort();
21
        nameAndTypeIndex = cpStream.readUnsignedShort()
21
        nameAndTypeIndex = cpStream.readUnsignedShort()
Summary
Number of common nesting structure subtrees0
Number of refactorable cases0
Number of non-refactorable cases0
Time elapsed for finding largest common nesting structure subtrees (ms)0.0
Clones location
Number of node comparisons0