private static final String NEGATE_KEY = "negate"; /** Vector that holds the strings that input lines must contain. */ private Vector contains = new Vector(); /** * Remaining line to be read from this filter, or <code>null</code> if * the next call to <code>read()</code> should read the original stream * to find the next matching line. */ private String line = null; private boolean negate = false; /** * Constructor for "dummy" instances. * * @see BaseFilterReader#BaseFilterReader() */ public LineContains() { super(); } /** * Creates a new filtered reader. * * @param in A Reader object providing the underlying stream. * Must not be <code>null</code>. */ public LineContains(final Reader in) { super(in)
private static final String NEGATE_KEY = "negate"; /** Vector that holds the expressions that input lines must contain. */ private Vector regexps = new Vector(); /** * Remaining line to be read from this filter, or <code>null</code> if * the next call to <code>read()</code> should read the original stream * to find the next matching line. */ private String line = null; private boolean negate = false; /** * Constructor for "dummy" instances. * * @see BaseFilterReader#BaseFilterReader() */ public LineContainsRegExp() { super(); } /** * Creates a new filtered reader. * * @param in A Reader object providing the underlying stream. * Must not be <code>null</code>. */ public LineContainsRegExp(final Reader in) { super(in)
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/LineContainsRegExp.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
private static final String NEGATE_KEY = "negate";
1
private static final String NEGATE_KEY = "negate";
2
    /** Vector that holds the strings that input lines must contain. */
2
    /** Vector that holds the expressions that input lines must contain. */
3
    private Vector contains = new Vector();
3
    private Vector regexps = new Vector();
4
    /**
4
    /**
5
     * Remaining line to be read from this filter, or <code>null</code> if
5
     * Remaining line to be read from this filter, or <code>null</code> if
6
     * the next call to <code>read()</code> should read the original stream
6
     * the next call to <code>read()</code> should read the original stream
7
     * to find the next matching line.
7
     * to find the next matching line.
8
     */
8
     */
9
    private String line = null;
9
    private String line = null;
10
    private boolean negate = false;
10
    private boolean negate = false;
11
    /**
11
    /**
12
     * Constructor for "dummy" instances.
12
     * Constructor for "dummy" instances.
13
     *
13
     *
14
     * @see BaseFilterReader#BaseFilterReader()
14
     * @see BaseFilterReader#BaseFilterReader()
15
     */
15
     */
16
    public LineContains() {
16
    public LineContainsRegExp() {
17
        super();
17
        super();
18
    }
18
    }
19
    /**
19
    /**
20
     * Creates a new filtered reader.
20
     * Creates a new filtered reader.
21
     *
21
     *
22
     * @param in A Reader object providing the underlying stream.
22
     * @param in A Reader object providing the underlying stream.
23
     *           Must not be <code>null</code>.
23
     *           Must not be <code>null</code>.
24
     */
24
     */
25
    public LineContains(final Reader in) {
25
    public LineContainsRegExp(final Reader in) {
26
        super(in)
26
        super(in)
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