private int classIndex; /** Index into the constant pool for the name and type entry */ private int nameAndTypeIndex; /** Constructor. */ public FieldRefCPInfo() { super(CONSTANT_FIELDREF, 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 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()
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/depend/constantpool/FieldRefCPInfo.java File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/depend/constantpool/InterfaceMethodRefCPInfo.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
private int classIndex;
1
private int classIndex;
2
    /** I
2
    /**
3
ndex into the constant pool for the name and type entry
3
     * the index into the constant pool of the name and type entry
4
     * describing the method
4
 */
5
     */
5
    private int nameAndTypeIndex;
6
    private int nameAndTypeIndex;
6
    /** Constructor.  */
7
    /** Constructor. */
7
    public FieldRefCPInfo() {
8
    public InterfaceMethodRefCPInfo() {
8
        super(CONSTANT_FIELDREF, 1);
9
        super(CONSTANT_INTERFACEMETHODREF, 1);
9
    }
10
    }
10
    /**
11
    /**
11
     * read a constant pool entry from a class stream.
12
     * read a constant pool entry from a class stream.
12
     *
13
     *
13
     * @param cpStream the DataInputStream which contains the constant pool
14
     * @param cpStream the DataInputStream which contains the constant pool
14
     *      entry to be read.
15
     *      entry to be read.
15
     * @exception IOException if there is a problem reading the entry from
16
     * @exception IOException if there is a problem reading the entry from
16
     *      the stream.
17
     *      the stream.
17
     */
18
     */
18
    public void read(DataInputStream cpStream) throws IOException {
19
    public void read(DataInputStream cpStream) throws IOException {
19
        classIndex = cpStream.readUnsignedShort();
20
        classIndex = cpStream.readUnsignedShort();
20
        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