Path createFactoryPath() { if (factoryPath == null) { factoryPath = new Path(getProject()); } return factoryPath.createPath(); } /** * Get the factory path attribute. * If this is not null, the "-factorypath" argument will be used. * The default value is null. * @return the factory path attribute. */ public Path getFactoryPath() { return factoryPath; } /** * Create a nested option. * @return an option to be configured. */ public Option createOption() { Option opt = new Option(); options.add(opt); return opt; }
Path createAttachments() { if (attachments == null) { attachments = new Path(getProject()); } return attachments.createPath(); } /** * Create a nested header element. * @return a Header instance. */ public Header createHeader() { Header h = new Header(); headers.add(h); return h; }
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/Apt.java File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/email/EmailTask.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
Path createFactoryPath() {
1
Path createAttachments() {
2
        if (factoryPath == null) {
2
        if (attachments == null) {
3
            factoryPath = new Path(getProject());
3
            attachments = new Path(getProject());
4
        }
4
        }
5
        return factoryPath.createPath();
5
        return attachments.createPath();
6
    }
6
    }
7
    /**
7
    /**
8
     * Get the factory path attribute.
8
     * 
9
     * If this is not null, the "-factorypath" argument will be used.
10
     * The default value is null.
9
Create a nested heade
11
     * @return the factory path attribute.
12
     */
13
    public Path getFactoryPath() {
14
        return factoryPath;
15
    }
16
    /**
17
     * Create a nested option.
18
     * @return an option to be configured.
19
     */
20
    public Option createOption
10
r element.
11
     * @return a Header instance.
12
     */
21
() {
13
    public Header createHeader() {
22
        Option opt = new Option();
14
        Header h = new Header();
23
        options.add(opt);
15
        headers.add(h);
24
        return opt;
16
        return h;
25
    }
17
    }
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