CloneSet287


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
46201.000block
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
146661
E:/TSE/Projects-CloneDR/sql12/plugins/dataimport/src/com/csvreader/CsvReader.java
246942
E:/TSE/Projects-CloneDR/sql12/plugins/dataimport/src/com/csvreader/CsvReader.java
Next
Last
Clone Instance
1
Line Count
46
Source Line
661
Source File
E:/TSE/Projects-CloneDR/sql12/plugins/dataimport/src/com/csvreader/CsvReader.java

{
  escapeLength++;
  switch (escape) {
    case ComplexEscape.UNICODE:
      escapeValue *= (char) 16;
      escapeValue += hexToDec(currentLetter);
      if (escapeLength == 4) {
        readingComplexEscape = false;
      }
      break;
    case ComplexEscape.OCTAL:
      escapeValue *= (char) 8;
      escapeValue += (char) (currentLetter - '0');
      if (escapeLength == 3) {
        readingComplexEscape = false;
      }
      break;
    case ComplexEscape.DECIMAL:
      escapeValue *= (char) 10;
      escapeValue += (char) (currentLetter - '0');
      if (escapeLength == 3) {
        readingComplexEscape = false;
      }
      break;
    case ComplexEscape.HEX:
      escapeValue *= (char) 16;
      escapeValue += hexToDec(currentLetter);
      if (escapeLength == 2) {
        readingComplexEscape = false;
      }
      break;
  }
  if ( !readingComplexEscape) {
    appendLetter(escapeValue);
  }
  else {
    dataBuffer.ColumnStart = dataBuffer.Position + 1;
  }
}


First
Previous
Clone Instance
2
Line Count
46
Source Line
942
Source File
E:/TSE/Projects-CloneDR/sql12/plugins/dataimport/src/com/csvreader/CsvReader.java

{
  escapeLength++;
  switch (escape) {
    case ComplexEscape.UNICODE:
      escapeValue *= (char) 16;
      escapeValue += hexToDec(currentLetter);
      if (escapeLength == 4) {
        readingComplexEscape = false;
      }
      break;
    case ComplexEscape.OCTAL:
      escapeValue *= (char) 8;
      escapeValue += (char) (currentLetter - '0');
      if (escapeLength == 3) {
        readingComplexEscape = false;
      }
      break;
    case ComplexEscape.DECIMAL:
      escapeValue *= (char) 10;
      escapeValue += (char) (currentLetter - '0');
      if (escapeLength == 3) {
        readingComplexEscape = false;
      }
      break;
    case ComplexEscape.HEX:
      escapeValue *= (char) 16;
      escapeValue += hexToDec(currentLetter);
      if (escapeLength == 2) {
        readingComplexEscape = false;
      }
      break;
  }
  if ( !readingComplexEscape) {
    appendLetter(escapeValue);
  }
  else {
    dataBuffer.ColumnStart = dataBuffer.Position + 1;
  }
}


Clone AbstractionParameter Count: 0Parameter Bindings

{
  escapeLength++;
  switch (escape) {
    case ComplexEscape.UNICODE:
      escapeValue *= (char) 16;
      escapeValue += hexToDec(currentLetter);
      if (escapeLength == 4) {
        readingComplexEscape = false;
      }
      break;
    case ComplexEscape.OCTAL:
      escapeValue *= (char) 8;
      escapeValue += (char) (currentLetter - '0');
      if (escapeLength == 3) {
        readingComplexEscape = false;
      }
      break;
    case ComplexEscape.DECIMAL:
      escapeValue *= (char) 10;
      escapeValue += (char) (currentLetter - '0');
      if (escapeLength == 3) {
        readingComplexEscape = false;
      }
      break;
    case ComplexEscape.HEX:
      escapeValue *= (char) 16;
      escapeValue += hexToDec(currentLetter);
      if (escapeLength == 2) {
        readingComplexEscape = false;
      }
      break;
  }
  if ( !readingComplexEscape) {
    appendLetter(escapeValue);
  }
  else {
    dataBuffer.ColumnStart = dataBuffer.Position + 1;
  }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None