CloneSet257


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
14220.965statement_sequence[7]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
114240
E:/TSE/Projects-CloneDR/sql12/test/src/net/sourceforge/squirrel_sql/fw/util/FileTest.java
214264
E:/TSE/Projects-CloneDR/sql12/test/src/net/sourceforge/squirrel_sql/fw/util/FileTest.java
Next
Last
Clone Instance
1
Line Count
14
Source Line
240
Source File
E:/TSE/Projects-CloneDR/sql12/test/src/net/sourceforge/squirrel_sql/fw/util/FileTest.java

assertEquals("wrong result 1", ref1.getPath(), file1.getPath());
FileWrapper file2 = new FileWrapperImpl("/", "//dir1/file1");
assertEquals("wrong result 2", ref1.getPath(), file2.getPath());
if (File.separatorChar == '\\') {
  FileWrapper file3 = new FileWrapperImpl("\\", "\\dir1\\file1");
  assertEquals("wrong result 3", ref1.getPath(), file3.getPath());
  FileWrapper file4 = new FileWrapperImpl("\\", "\\\\dir1\\file1");
  assertEquals("wrong result 4", ref1.getPath(), file4.getPath());
}
FileWrapper ref2 = new FileWrapperImpl("/lib/content-types.properties");
FileWrapper file5 = new FileWrapperImpl("/", "lib/content-types.properties");
assertEquals("wrong result 5", ref2.getPath(), file5.getPath());


First
Previous
Clone Instance
2
Line Count
14
Source Line
264
Source File
E:/TSE/Projects-CloneDR/sql12/test/src/net/sourceforge/squirrel_sql/fw/util/FileTest.java

assertEquals("wrong result 1", ref1.getPath(), file1.getPath());
FileWrapper file2 = new FileWrapperImpl(root, "//dir1/file1");
assertEquals("wrong result 2", ref1.getPath(), file2.getPath());
if (File.separatorChar == '\\') {
  FileWrapper file3 = new FileWrapperImpl(root, "\\dir1\\file1");
  assertEquals("wrong result 3", ref1.getPath(), file3.getPath());
  FileWrapper file4 = new FileWrapperImpl(root, "\\\\dir1\\file1");
  assertEquals("wrong result 4", ref1.getPath(), file4.getPath());
}
FileWrapper ref2 = new FileWrapperImpl("/lib/content-types.properties");
FileWrapper file5 = new FileWrapperImpl(root, "lib/content-types.properties");
assertEquals("wrong result 5", ref2.getPath(), file5.getPath());


Clone AbstractionParameter Count: 2Parameter Bindings

assertEquals("wrong result 1", ref1.getPath(), file1.getPath());
FileWrapper file2 = new FileWrapperImpl( [[#variable18da56a0]], "//dir1/file1");
assertEquals("wrong result 2", ref1.getPath(), file2.getPath());
if (File.separatorChar == '\\') {
  FileWrapper file3 = new FileWrapperImpl( [[#variable18da3fa0]], "\\dir1\\file1");
  assertEquals("wrong result 3", ref1.getPath(), file3.getPath());
  FileWrapper file4 = new FileWrapperImpl( [[#variable18da3fa0]], "\\\\dir1\\file1");
  assertEquals("wrong result 4", ref1.getPath(), file4.getPath());
}
FileWrapper ref2 = new FileWrapperImpl("/lib/content-types.properties");
FileWrapper file5 = new FileWrapperImpl( [[#variable18da56a0]], "lib/content-types.properties");
assertEquals("wrong result 5", ref2.getPath(), file5.getPath());
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#18da56a0]]
"/" 
12[[#18da56a0]]
root 
21[[#18da3fa0]]
"\\" 
22[[#18da3fa0]]
root