void appendName(String name) { PropertyRef r = new PropertyRef(); r.setName(name); addPropertyref(r); } /** * Allow properties whose names match a regex in the set. * @param regex the regular expression to use. */ public void appendRegex(String regex) { PropertyRef r = new PropertyRef(); r.setRegex(regex); addPropertyref(r);
void appendRegex(String regex) { PropertyRef r = new PropertyRef(); r.setRegex(regex); addPropertyref(r); } /** * Allow properties whose names start with a prefix in the set. * @param prefix the prefix to use. */ public void appendPrefix(String prefix) { PropertyRef r = new PropertyRef(); r.setPrefix(prefix); addPropertyref(r);
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/org/apache/tools/ant/types/PropertySet.java File path: /apache-ant-1.7.0/src/org/apache/tools/ant/types/PropertySet.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
void appendName(String name) {
1
void appendRegex(String regex) {
2
        PropertyRef r = new PropertyRef();
2
        PropertyRef r = new PropertyRef();
3
        r.setName(name);
3
        r.setRegex(regex);
4
        addPropertyref(r);
4
        addPropertyref(r);
5
    }
5
    }
6
    /**
6
    /**
7
     * Allow properties whose names match a regex in the set.
7
     * Allow properties whose names start with a prefix in the set.
8
     * @param regex the regular expression to use.
8
     * @param prefix the prefix to use.
9
     */
9
     */
10
    public void appendRegex(String regex) {
10
    public void appendPrefix(String prefix) {
11
        PropertyRef r = new PropertyRef();
11
        PropertyRef r = new PropertyRef();
12
        r.setRegex(regex);
12
        r.setPrefix(prefix);
13
        addPropertyref(r);
13
        addPropertyref(r);
14
    
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