public ZipLong (byte[] bytes) { this(bytes, 0); } /** * Create instance from the four bytes starting at offset. * @param bytes the bytes to store as a ZipLong * @param offset the offset to start * @since 1.1 */ public ZipLong (byte[] bytes, int offset) { value = ZipLong.getValue(bytes, offset);
public ZipShort (byte[] bytes) { this(bytes, 0); } /** * Create instance from the two bytes starting at offset. * @param bytes the bytes to store as a ZipShort * @param offset the offset to start * @since 1.1 */ public ZipShort (byte[] bytes, int offset) { value = ZipShort.getValue(bytes, offset);
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/org/apache/tools/zip/ZipLong.java File path: /apache-ant-1.7.0/src/org/apache/tools/zip/ZipShort.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public ZipLong (byte[] bytes) {
1
public ZipShort (byte[] bytes) {
2
        this(bytes, 0);
2
        this(bytes, 0);
3
    }
3
    }
4
    /**
4
    /**
5
     * Create instance from the four bytes starting at offset.
5
     * Create instance from the two bytes starting at offset.
6
     * @param bytes the bytes to store as a ZipLong
6
     * @param bytes the bytes to store as a ZipShort
7
     * @param offset the offset to start
7
     * @param offset the offset to start
8
     * @since 1.1
8
     * @since 1.1
9
     */
9
     */
10
    public ZipLong (byte[] bytes, int offset) {
10
    public ZipShort (byte[] bytes, int offset) {
11
        value = ZipLong.getValue(bytes, offset);
11
        value = ZipShort.getValue(bytes, offset);
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