String getIncludeDefaultReferencesParameter() { return "/nostdlib" + (includeDefaultReferences ? "-" : "+"); } /** * If true, enables optimization flag. * *@param f on/off flag */ public void setOptimize(boolean f) { optimize = f; } /** * query the optimise flag * *@return true if optimise is turned on */ public boolean getOptimize() { return optimize; } /** * get the optimise flag or null for no argument needed * *@return The Optimize Parameter to CSC */ protected String getOptimizeParameter() { return "/optimize" + (optimize ? "+" : "-"); } /** * set the debug flag on or off. * *@param f on/off flag */ public void setDebug(boolean f) { debug = f; } /** * query the debug flag * *@return true if debug is turned on */ public boolean getDebug() { return debug; } /** * get the debug switch argument * *@return The Debug Parameter to CSC */ protected String getDebugParameter() { return "/debug" + (debug ? "+" : "-");
String getRemoveIntChecksParameter() { return "/removeintchecks" + (removeIntChecks ? "+" : "-"); } /** * Whether to require explicit declaration of variables. * @param flag on/off flag */ public void setOptionExplicit(boolean flag) { optionExplicit = flag; } /** * Get the flag for whether to require explicit declaration of variables. *@return true if flag is turned on */ public boolean getOptionExplicit() { return optionExplicit; } /** * Form the option string for optionExplicit.. * @return The parameter string. */ public String getOptionExplicitParameter() { return "/optionexplicit" + (optionExplicit ? "+" : "-"); } /** * Enforce strict language semantics. * @param flag on/off flag */ public void setOptionStrict(boolean flag) { optionStrict = flag; } /** * Get the flag for whether to enforce strict language semantics. * @return true if flag is turned on */ public boolean getOptionStrict() { return optionStrict; } /** * For the option string for optionStrict. * @return The parameter string. */ public String getOptionStrictParameter() { return "/optionstrict" + (optionStrict ? "+" : "-");
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/dotnet/DotnetCompile.java File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/dotnet/VisualBasicCompile.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
String getIncludeDefaultReferencesParameter() {
1
String getRemoveIntChecksParameter() {
2
        return "/nostdlib" + (includeDefaultReferences ? "-" : "+");
2
        return "/removeintchecks" + (removeIntChecks ? "+" : "-");
3
    }
3
    }
4
    /**
4
    /**
5
     * If true, enables optimization flag.
5
     * Whether to require explicit declaration of variables.
6
     *
6
     *
7
     *@param  f  on/off flag
7
 @param  flag  on/off flag
8
     */
8
     */
9
    public void setOptimize(boolean f) {
9
    public void setOptionExplicit(boolean flag) {
10
        optimize = f;
10
        optionExplicit = flag;
11
    }
11
    }
12
    /**
12
    /**
13
     *  query the optimise flag
13
     * 
14
     *
14
Get the flag for whether to require explicit declaration of variables.
15
     *@return    true if optimise is turned on
15
     *@return    true if flag is turned on
16
     */
16
     */
17
    public boolean getOptimize() {
17
    public boolean getOptionExplicit() {
18
        return optimize;
18
        return optionExplicit;
19
    }
19
    }
20
    /**
20
    /**
21
     *  get the optimise flag or null for no argument needed
21
     * Form the opti
22
     *
23
     *
22
on string for optionExplicit..
24
@return    The Optimize Parameter to CSC
23
     * @return The parameter string.
25
     */
24
     */
26
    protected String getOptimizeParameter() {
25
    public String getOptionExplicitParameter() {
27
        return "/optimize" + (optimize ? "+" : "-");
26
        return "/optionexplicit" + (optionExplicit ? "+" : "-");
28
    }
27
    }
29
    /**
28
    /**
30
     *  set the debug flag on or off.
29
     * Enforce strict language semantics.
31
     *
30
     *
32
     *@param  f  on/off flag
31
 @param  flag  on/off flag
33
     */
32
     */
34
    public void setDebug(boolean f) {
33
    public void setOptionStrict(boolean flag) {
35
        debug = f;
34
        optionStrict = flag;
36
    }
35
    }
37
    /**
36
    /**
38
     *  query the debug flag
37
     * 
39
     *
38
Get the flag for whether to enforce strict language semantics.
40
     *@return    true if debug is turned on
39
     * @return    true if flag is turned on
41
     */
40
     */
42
    public boolean getDebug() {
41
    public boolean getOptionStrict() {
43
        return debug;
42
        return optionStrict;
44
    }
43
    }
45
    /**
44
    /**
46
     *  get the debug switch argument
45
     * For the 
47
     *
48
     *
46
option string for optionStrict.
49
@return    The Debug Parameter to CSC
47
     * @return The parameter string.
50
     */
48
     */
51
    protected String getDebugParameter() {
49
    public String getOptionStrictParameter() {
52
        return "/debug" + (debug ? "+" : "-");
50
        return "/optionstrict" + (optionStrict ? "+" : "-");
53
    
51
    
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