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 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/optional/ejb/EjbJar.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 createClasspath() {
1
Path createFactoryPath() {
2
        if (config.classpath == null) {
2
        if (factoryPath == null) {
3
            config.classpath = new Path(getProject());
3
            factoryPath = new Path(getProject());
4
        }
4
        }
5
        return config.classpath.createPath();
5
        return factoryPath.createPath();
6
    }
6
    }
7
    /**
7
    /**
8
     * Create a DTD location record. This stores the location of a DTD. The
8
     * 
9
     * DTD is identified by
9
Get the factory path attribute.
10
     * If this is not null, the "-factorypath" argument will be used.
10
 its public Id. The location may either be a file
11
     * The default value is 
11
     * location or a resource location.
12
     
12
null.
13
     * @return the factory path attribute.
14
     */
15
    public Path getFactoryPath() {
16
        return factoryPath;
17
    }
13
*
18
    /**
14
     * @return the DTD location object
19
     * Create a nested option.
15
 to be configured by Ant
20
     * @return an option to be configured.
16
     */
21
     */
17
    public DTDLocation createDTD() {
22
    public Option createOption() {
18
        DTDLocation dtdLocation = new DTDLocation();
23
        Option opt = new Option();
19
        config.dtdLocations.add(dtdLocation);
24
        options.add(opt);
20
        return dtdLocation;
25
        return opt;
21
    
26
    
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