FileOutputStream fos = new FileOutputStream(file.getAbsolutePath()); fos.close(); assertNull( "listFiles Should Have Returned Null When Used On A File Instead Of A Directory.", file.listFiles(tstFilter));
FileOutputStream fos = new FileOutputStream(file.getAbsolutePath()); fos.close(); assertNull( "listFiles Should Have Returned Null When Used On A File Instead Of A Directory.", file.list());
Clone fragments detected by clone detection tool
File path: /sql12/test/src/net/sourceforge/squirrel_sql/fw/util/FileTest.java File path: /sql12/test/src/net/sourceforge/squirrel_sql/fw/util/FileTest.java
Method name: void test_listFilesLjava_io_FilenameFilter() Method name: void test_list()
Number of AST nodes: 3 Number of AST nodes: 3
1
FileOutputStream fos = new FileOutputStream(file.getAbsolutePath());
1
FileOutputStream fos = new FileOutputStream(file.getAbsolutePath());
2
                fos.close();
2
                fos.close();
3
                assertNull(
3
                assertNull(
4
                        "listFiles Should Have Returned Null When Used On A File Instead Of A Directory.",
4
                        "listFiles Should Have Returned Null When Used On A File Instead Of A Directory.",
5
                        file.listFiles(tstFilter));
5
                        file.list());
Summary
Number of common nesting structure subtrees1
Number of refactorable cases1
Number of non-refactorable cases0
Time elapsed for finding largest common nesting structure subtrees (ms)0.0
Clones locationClones are declared in the same class
Number of node comparisons5
  1. {Refactorable}
    Mapping Summary
    Number of mapped statements2
    Number of unmapped statements in the first code fragment1
    Number of unmapped statements in the second code fragment1
    Time elapsed for statement mapping (ms)0.0
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    18
    FileOutputStream fos = new FileOutputStream(file.getAbsolutePath());
    19
    FileOutputStream fos = new FileOutputStream(file.getAbsolutePath());
    19
    fos.close();
    20
    fos.close();
    20
    assertNull("listFiles Should Have Returned Null When Used On A File Instead Of A Directory.", file.listFiles(tstFilter));
                                                                                                                                                                                                                                                            
                                                                                                                                                                                                                                
    21
    assertNull("listFiles Should Have Returned Null When Used On A File Instead Of A Directory.", file.list());
    Precondition Violations (0)
    Row Violation