private Collection coll = null; private boolean cache = true; /** * Set whether to cache collections. * @param b boolean cache flag. */ public synchronized void setCache(boolean b) { cache = b; } /** * Learn whether to cache collections. Default is <code>true</code>. * @return boolean cache flag. */ public synchronized boolean isCache() { return cache;
private Collection coll = null; private boolean cache = true; /** * Set whether to cache collections. * @param b boolean cache flag. */ public synchronized void setCache(boolean b) { cache = b; } /** * Learn whether to cache collections. Default is <code>true</code>. * @return boolean cache flag. */ public synchronized boolean isCache() { return cache;
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/org/apache/tools/ant/types/resources/BaseResourceCollectionContainer.java File path: /apache-ant-1.7.0/src/org/apache/tools/ant/types/resources/BaseResourceCollectionWrapper.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
private Collection coll = null;
1
private Collection coll = null;
2
    private boolean cache = true;
2
    private boolean cache = true;
3
    /**
3
    /**
4
     * Set whether to cache collections.
4
     * Set whether to cache collections.
5
     * @param b boolean cache flag.
5
     * @param b boolean cache flag.
6
     */
6
     */
7
    public synchronized void setCache(boolean b) {
7
    public synchronized void setCache(boolean b) {
8
        cache = b;
8
        cache = b;
9
    }
9
    }
10
    /**
10
    /**
11
     * Learn whether to cache collections. Default is <code>true</code>.
11
     * Learn whether to cache collections. Default is <code>true</code>.
12
     * @return boolean cache flag.
12
     * @return boolean cache flag.
13
     */
13
     */
14
    public synchronized boolean isCache() {
14
    public synchronized boolean isCache() {
15
        return cache;
15
        return cache;
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