public void buildFinished(BuildEvent event) { cleanup(); } /** * Cleans up any resources held by this classloader at the end of * a subbuild if it has been created for the subbuild's project * instance. * * @param event the buildFinished event * * @since Ant 1.6.2 */ public void subBuildFinished(BuildEvent event) { if (event.getProject() == project) { cleanup()
public void buildFinished(BuildEvent event) { cleanup(); } /** * Cleans recorder registry, if this is the subbuild the task has * been created in. * @param event ignored. * @since Ant 1.7 */ public void subBuildFinished(BuildEvent event) { if (event.getProject() == getProject()) { cleanup()
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/org/apache/tools/ant/AntClassLoader.java File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/Recorder.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public void buildFinished(BuildEvent event) {
1
public void buildFinished(BuildEvent event) {
2
        cleanup();
2
        cleanup();
3
    }
3
    }
4
    /**
4
    /**
5
     * Cleans up any resources held by this classloader at the end of
5
     * Cleans 
6
     * a subbuild if it has been created for the subbuild's project
7
     * instance.
8
     *
9
     * @param event the buildFinished event
10
     *
6
recorder registry, if this is the subbuild the task has
7
     * been created in.
8
     * @param event ignored.
11
     * @since Ant 1.6.2
9
     * @since Ant 1.7
12
     */
10
     */
13
    public void subBuildFinished(BuildEvent event) {
11
    public void subBuildFinished(BuildEvent event) {
14
        if (event.getProject() == project) {
12
        if (event.getProject() == getProject()) {
15
            cleanup()
13
            cleanup()
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