CloneSet164


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

// Checking to make sure the correct files were are listed in the
// array.
boolean[] check = new boolean[flist.length];
for (int i = 0; i < check.length; i++) {
  check[i] = false;
}
for (int i = 0; i < files.length; i++) {
  for (int j = 0; j < flist.length; j++) {
    if (flist[j].equals(files[i])) {
      check[i] = true;
      break;
    }
  }
}
int checkCount = 0;
for (int i = 0; i < check.length; i++) {
  if (check[i] == false) {
    checkCount++;
  }
}
assertEquals("Invalid file returned in listing", 0, checkCount);


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

// Checking to make sure the correct files were are listed in
// the array.
boolean[] check = new boolean[flist.length];
for (int i = 0; i < check.length; i++) {
  check[i] = false;
}
for (int i = 0; i < files.length; i++) {
  for (int j = 0; j < flist.length; j++) {
    if (flist[j].getName().equals(files[i])) {
      check[i] = true;
      break;
    }
  }
}
int checkCount = 0;
for (int i = 0; i < check.length; i++) {
  if (check[i] == false) {
    checkCount++;
  }
}
assertEquals("Invalid file returned in listing", 0, checkCount);


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

// Checking to make sure the correct files were are listed in the
// array.
boolean[] check = new boolean[flist.length];
for (int i = 0; i < check.length; i++) {
  check[i] = false;
}
for (int i = 0; i < files.length; i++) {
  for (int j = 0; j < flist.length; j++) {
    if (flist[j].getName().equals(files[i])) {
      check[i] = true;
      break;
    }
  }
}
int checkCount = 0;
for (int i = 0; i < check.length; i++) {
  if (check[i] == false) {
    checkCount++;
  }
}
assertEquals("Invalid file returned in listing", 0, checkCount);


Clone AbstractionParameter Count: 1Parameter Bindings

// Checking to make sure the correct files were are listed in the
// array.
// Checking to make sure the correct files were are listed in
// the array.
boolean[] check = new boolean[flist.length];
for (int i = 0; i < check.length; i++) {
  check[i] = false;
}
for (int i = 0; i < files.length; i++) {
  for (int j = 0; j < flist.length; j++) {
    if ( [[#variable1af68180]].equals(files[i])) {
      check[i] = true;
      break;
    }
  }
}
int checkCount = 0;
for (int i = 0; i < check.length; i++) {
  if (check[i] == false) {
    checkCount++;
  }
}
assertEquals("Invalid file returned in listing", 0, checkCount);
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#1af68180]]
flist[j] 
12[[#1af68180]]
flist[j].getName() 
13[[#1af68180]]
flist[j].getName()