if (type != null) { if (file == null) { throw new BuildException("The type attribute is only valid " + "when specifying the file " + "attribute.", getLocation()); } }
while (ch != '\n' && ch != -1 && ch != '\r') { ch = in.read(); }
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/Available.java File path: /apache-ant-1.7.0/src/org/apache/tools/ant/filters/StripJavaComments.java
Method name: boolean eval() Method name: int read()
Number of AST nodes: 3 Number of AST nodes: 2
1
if (type != null) {
2
                if (file == null) {
3
                    throw new BuildException("The type attribute is only valid "
4
                                             + "when specifying the file "
5
                                             + "attribute.", getLocation()
1
while (ch != '\n' && ch != -1 && ch != '\r') {
6
);
2
                                ch = in.read();
7
                }
3
                
8
            }
4
            }
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 locationClones are in different classes
Number of node comparisons1