CloneSet420


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
22201.000statement_sequence[7]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
122593
E:/TSE/Projects-CloneDR/sql12/fw/src/net/sourceforge/squirrel_sql/fw/datasetviewer/cellcomponent/DataTypeBigDecimal.java
222697
E:/TSE/Projects-CloneDR/sql12/fw/src/net/sourceforge/squirrel_sql/fw/datasetviewer/cellcomponent/DataTypeString.java
Next
Last
Clone Instance
1
Line Count
22
Source Line
593
Source File
E:/TSE/Projects-CloneDR/sql12/fw/src/net/sourceforge/squirrel_sql/fw/datasetviewer/cellcomponent/DataTypeBigDecimal.java

InputStreamReader inReader = new InputStreamReader(inStream);
int fileSize = inStream.available();
char charBuf[] = new char[fileSize];
int count = inReader.read(charBuf, 0, fileSize);
if (count != fileSize)
  throw new IOException("Could read only " + count + " chars from a total file size of " + fileSize + ". Import failed.");
// convert file text into a string
// Special case: some systems tack a newline at the end of
// the text read.  Assume that if last char is a newline that
// we want everything else in the line.
String fileText;
if (charBuf[count - 1] == KeyEvent.VK_ENTER)
  fileText = new String(charBuf, 0, count - 1);
else
  fileText = new String(charBuf);


First
Previous
Clone Instance
2
Line Count
22
Source Line
697
Source File
E:/TSE/Projects-CloneDR/sql12/fw/src/net/sourceforge/squirrel_sql/fw/datasetviewer/cellcomponent/DataTypeString.java

InputStreamReader inReader = new InputStreamReader(inStream);
int fileSize = inStream.available();
char charBuf[] = new char[fileSize];
int count = inReader.read(charBuf, 0, fileSize);
if (count != fileSize)
  throw new IOException("Could read only " + count + " chars from a total file size of " + fileSize + ". Import failed.");
// convert to string
// Special case: some systems tack a newline at the end of
// the text read.  Assume that if last char is a newline that
// we want everything else in the line.
String fileText;
if (charBuf[count - 1] == KeyEvent.VK_ENTER)
  fileText = new String(charBuf, 0, count - 1);
else
  fileText = new String(charBuf);


Clone AbstractionParameter Count: 0Parameter Bindings

InputStreamReader inReader = new InputStreamReader(inStream);
int fileSize = inStream.available();
char charBuf[] = new char[fileSize];
int count = inReader.read(charBuf, 0, fileSize);
if (count != fileSize)
  throw new IOException("Could read only " + count + " chars from a total file size of " + fileSize + ". Import failed.");
// convert to string
// convert file text into a string
// Special case: some systems tack a newline at the end of
// the text read.  Assume that if last char is a newline that
// we want everything else in the line.
String fileText;
if (charBuf[count - 1] == KeyEvent.VK_ENTER)
  fileText = new String(charBuf, 0, count - 1);
else
  fileText = new String(charBuf);
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None