void setFooter(String footer) { Html h = new Html(); h.addText(footer); addFooter(h); } /** * Set the footer text to be placed at the bottom of each output file. * * @param text the footer text. */ public void addFooter(Html text) { footer = text; } /** * Set the text to be placed at the bottom of each output file. * * @param bottom the bottom text. */ public void setBottom(String bottom) { Html h = new Html(); h.addText(bottom); addBottom(h); }
void setDoctitle(String doctitle) { Html h = new Html(); h.addText(doctitle); addDoctitle(h); } /** * Add a document title to use for the overview page. * * @param text the HTML element containing the document title. */ public void addDoctitle(Html text) { doctitle = text; } /** * Set the header text to be placed at the top of each output file. * * @param header the header text */ public void setHeader(String header) { Html h = new Html(); h.addText(header); addHeader(h); }
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/Javadoc.java File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/Javadoc.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
void setFooter(String footer) {
1
void setDoctitle(String doctitle) {
2
        Html h = new Html();
2
        Html h = new Html();
3
        h.addText(footer);
3
        h.addText(doctitle);
4
        addFooter(h);
4
        addDoctitle(h);
5
    }
5
    }
6
    /**
6
    /**
7
     * Set the footer text to be placed at the bottom of each output file.
7
     * 
8
     *
9
     * @param text the footer text
8
Add a document title to use for the overview page.
9
     *
10
.
10
     * @param text the HTML element containing the document title.
11
     */
11
     */
12
    public void addFooter(Html text) {
12
    public void addDoctitle(Html text) {
13
        footer = text;
13
        doctitle = text;
14
    }
14
    }
15
    /**
15
    /**
16
     * Set the text to be placed at the bottom of each output file.
16
     * Set the header text to be placed at the top of each output file.
17
     *
17
     *
18
     * @param bottom the bottom text.
18
     * @param header the header text
19
     */
19
     */
20
    public void setBottom(String bottom) {
20
    public void setHeader(String header) {
21
        Html h = new Html();
21
        Html h = new Html();
22
        h.addText(bottom);
22
        h.addText(header);
23
        addBottom(h);
23
        addHeader(h);
24
    }
24
    }
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