String getNoCompress() { return noCompress ? FLAG_NO_COMPRESSION : ""; } /** * Get the NoCache flag. * * @return the 'nocache' Flag if the attribute was 'true', otherwise an empty string. */ protected String getNoCache() { return noCache ? FLAG_NO_CACHE : ""; } /** * Get the 'verbose' Flag. * * @return the 'verbose' Flag if the attribute was 'true', otherwise an empty string. */ protected String getVerbose() { return verbose ? FLAG_VERBOSE : "";
String getQuiet() { return quiet ? FLAG_QUIET : ""; } /** * Gets the recursive string. "-R" * @return An empty string if recursive is not set or is false. */ protected String getRecursive() { return recursive ? FLAG_RECURSION : ""; } /** * Gets the writable string. "-W" * @return An empty string if writable is not set or is false. */ protected String getWritable() { return writable ? FLAG_WRITABLE : "";
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/sos/SOS.java File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/vss/MSVSS.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
String getNoCompress() {
1
String getQuiet() {
2
        return noCompress ? FLAG_NO_COMPRESSION : "";
2
        return quiet ? FLAG_QUIET : "";
3
    }
3
    }
4
    /**
4
    /**
5
     * Get the NoCache flag.
5
     * Gets the 
6
     *
7
     * @return the 'nocache' Flag if the attribute was 'true', otherwise an empty string
6
recursive string. "-R"
8
.
7
     * @return An empty string if recursive is not set or is false.
9
     */
8
     */
10
    protected String getNoCache() {
9
    protected String getRecursive() {
11
        return noCache ? FLAG_NO_CACHE : "";
10
        return recursive ? FLAG_RECURSION : "";
12
    }
11
    }
13
    /**
12
    /**
14
     * Get the 'verbose' Flag.
13
     * Gets the 
15
     *
16
     * @return the 'verbose' Flag if the attribute was 'true', otherwise an empty string
14
writable string. "-W"
17
.
15
     * @return An empty string if writable is not set or is false.
18
     */
16
     */
19
    protected String getVerbose() {
17
    protected String getWritable() {
20
        return verbose ? FLAG_VERBOSE : "";
18
        return writable ? FLAG_WRITABLE : "";
21
    
19
    
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