String getName() { return this.name.toString(); } /** * Set this entry's name. * * @param name This entry's new name. */ public void setName(String name) { this.name = new StringBuffer(name); } /** * Set the mode for this entry * * @param mode the mode for this entry */ public void setMode(int mode) { this.mode = mode; } /** * Get this entry's link name. * * @return This entry's link name. */ public String getLinkName() { return this.linkName.toString();
String getUserName() { return this.userName.toString(); } /** * Set this entry's user name. * * @param userName This entry's new user name. */ public void setUserName(String userName) { this.userName = new StringBuffer(userName); } /** * Get this entry's group name. * * @return This entry's group name. */ public String getGroupName() { return this.groupName.toString();
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/org/apache/tools/tar/TarEntry.java File path: /apache-ant-1.7.0/src/org/apache/tools/tar/TarEntry.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
String getName() {
1
String getUserName() {
2
        return this.name.toString();
2
        return this.userName.toString();
3
    }
3
    }
4
    /**
4
    /**
5
     * Set this entry's name.
5
     * Set this entry's user name.
6
     *
6
     *
7
     * @param name This entry's new name.
7
     * @param userName This entry's new user name.
8
     */
8
     */
9
    public void setName(String name) {
9
    public void setUserName(String userName) {
10
        this.name = new StringBuffer(name);
10
        this.userName = new StringBuffer(
11
    }
12
    /**
13
     * Set the mode for this entry
14
     *
15
     * @param mode the mode for this entry
16
     */
17
    public void setMode(int mode) {
18
        this.mode = mode;
11
userName);
19
    }
12
    }
20
    /**
13
    /**
21
     * Get this entry's link name.
14
     * Get this entry's group name.
22
     *
15
     *
23
     * @return This entry's link name.
16
     * @return This entry's group name.
24
     */
17
     */
25
    public String getLinkName() {
18
    public String getGroupName() {
26
        return this.linkName.toString();
19
        return this.groupName.toString();
27
    
20
    
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