ICU-5410 Improve code coverage by removing dead code.

X-SVN-Rev: 21944
This commit is contained in:
George Rhoten 2007-07-11 01:02:51 +00:00
parent 23572923be
commit 1525ef9dcf
2 changed files with 11 additions and 6 deletions

View File

@ -1,6 +1,6 @@
/**
*******************************************************************************
* Copyright (C) 2006, International Business Machines Corporation and *
* Copyright (C) 2006-2007, International Business Machines Corporation and *
* others. All Rights Reserved. *
*******************************************************************************
*
@ -517,7 +517,7 @@ public abstract class CharsetEncoderICU extends CharsetEncoder {
}
}
}
/**
/*
* Ascertains if a given Unicode code point (32bit value for handling surrogates)
* can be converted to the target encoding. If the caller wants to test if a
* surrogate pair can be converted to target encoding then the
@ -556,9 +556,14 @@ public abstract class CharsetEncoderICU extends CharsetEncoder {
* @draft ICU 3.6
* @provisional This API might change or be removed in a future release.
*/
public boolean canEncode(int codepoint) {
/* TODO This is different from Java's canEncode(char) API.
* ICU's API should implement getUnicodeSet,
* and override canEncode(char) which queries getUnicodeSet.
* The getUnicodeSet should return a frozen UnicodeSet or use a fillin parameter, like ICU4C.
*/
/*public boolean canEncode(int codepoint) {
return true;
}
}*/
/**
* Overrides super class method
* @stable ICU 3.6

View File

@ -573,7 +573,7 @@ final class UConverterDataReader implements ICUBinary.Authenticate {
return b;
}
protected byte[] readExtTables(int n) throws IOException
/*protected byte[] readExtTables(int n) throws IOException
{
byte[] tables = new byte[n];
int len =dataInputStream.read(tables);
@ -582,7 +582,7 @@ final class UConverterDataReader implements ICUBinary.Authenticate {
}
bytesRead += len;
return tables;
}
}*/
byte[] getDataFormatVersion(){
return DATA_FORMAT_VERSION;