void setVerbose(VerboseAttr verbose) { this.verbose = verbose.getValue(); } /** * Whether lots of warnings and error messages should be generated * @param verbose the value to set - verbose<level> or noverbose. */ public void setVerbose(String verbose) { VerboseAttr v = new VerboseAttr(); v.setValue(verbose); setVerbose(v);
void setTrace(TraceAttr trace) { this.trace = trace.getValue(); } /** * Turns on or off tracing and directs the resultant trace output Valid * values are: "trace", "trace1", "trace2" and "notrace". "trace" and * "trace2". * @param trace the value to set. */ public void setTrace(String trace) { TraceAttr t = new TraceAttr(); t.setValue(trace); setTrace(t);
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/NetRexxC.java File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/NetRexxC.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
void setVerbose(VerboseAttr verbose) {
1
void setTrace(TraceAttr trace) {
2
        this.verbose = verbose.getValue();
2
        this.trace = trace.getValue();
3
    }
3
    }
4
    /**
4
    /**
5
     * Whether lots of warnings and error messages should be generated
5
     * Turns on or off tracing and directs the resultant trace output Valid
6
     * values are: "trace", "trace1", "trace2" and "notrace". "trace" and
7
     * "trace2".
6
     * @param verbose the value to set - verbose<level> or noverbose.
8
     * @param trace the value to set.
7
     */
9
     */
8
    public void setVerbose(String verbose) {
10
    public void setTrace(String trace) {
9
        VerboseAttr v = new VerboseAttr();
11
        TraceAttr t = new TraceAttr();
10
        v.setValue(verbose);
12
        t.setValue(trace);
11
        setVerbose(v);
13
        setTrace(t);
12
    
14
    
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