public static class Contains { /** User defined contains string */ private String value; /** * Sets the contains string * * @param contains The contains string to set. * Must not be <code>null</code>. */ public final void setValue(String contains) { value = contains; } /** * Returns the contains string. * * @return the contains string for this element */ public final String getValue() { return value
public static class Comment { /** The prefix for a line comment. */ private String value; /** * Sets the prefix for this type of line comment. * * @param comment The prefix for a line comment of this type. * Must not be <code>null</code>. */ public final void setValue(String comment) { value = comment; } /** * Returns the prefix for this type of line comment. * * @return the prefix for this type of line comment. */ public final String getValue() { return value
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/org/apache/tools/ant/filters/LineContains.java File path: /apache-ant-1.7.0/src/org/apache/tools/ant/filters/StripLineComments.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public static class Contains {
1
public static class Comment {
2
        /** User defined contains string */
2
        /** The prefix for a line comment. */
3
        private String value;
3
        private String value;
4
        /**
4
        /**
5
         * Sets the contains string
5
         * Sets the prefix for this type of line comment.
6
         *
6
         *
7
         * @param contains The contains string to set.
7
         * @param co
8
         *                
8
mment The prefix for a line comment of this type.
9
 Must not be <code>null</code>.
9
         * Must not be <code>null</code>.
10
         */
10
         */
11
        public final void setValue(String contains) {
11
        public final void setValue(String comment) {
12
            value = contains;
12
            value = comment;
13
        }
13
        }
14
        /**
14
        /**
15
         * Returns the contains string.
15
         * Returns the prefix for this type of line comment.
16
         *
16
         *
17
         * @return the contains string for this element
17
         * @return the prefix for this type of line comment.
18
         */
18
         */
19
        public final String getValue() {
19
        public final String getValue() {
20
            return value
20
            return value
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