Path createClasspath() { if (config.classpath == null) { config.classpath = new Path(getProject()); } return config.classpath.createPath(); } /** * Create a DTD location record. This stores the location of a DTD. The * DTD is identified by its public Id. The location may either be a file * location or a resource location. * * @return the DTD location object to be configured by Ant */ public DTDLocation createDTD() { DTDLocation dtdLocation = new DTDLocation(); config.dtdLocations.add(dtdLocation); return dtdLocation;
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/optional/ejb/EjbJar.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 createClasspath() {
1
Path createAttachments() {
2
        if (config.classpath == null) {
2
        if (attachments == null) {
3
            config.classpath = new Path(getProject());
3
            attachments = new Path(getProject());
4
        }
4
        }
5
        return config.classpath.createPath();
5
        return attachments.createPath();
6
    }
6
    }
7
    /**
7
    /**
8
     * Create a DTD location record. This stores the location of a DTD. The
8
     * Create a 
9
     * DTD is identified by its public Id. The location may either be a file
10
     * location or a resource location.
9
nested header element.
11
     *
12
     * @return the DTD location object to be configured by Ant
10
     * @return a Header instance.
13
     */
11
     */
14
    public DTDLocation createDTD() {
12
    public Header createHeader() {
15
        DTDLocation dtdLocation = new DTDLocation();
13
        
16
        config.dtdLocations.add(dtdLocation
14
Header h = new Header();
17
);
15
        headers.add(h);
18
        return dtdLocation;
16
        return h;
19
    
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