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