+2003-02-15 Michael Koch <konqueror@gmx.de>
+
+ * java/awt/datatransfer/DataFlavor.java
+ (isRepresentationClassByteBuffer): Removed try-catch block.
+ (isRepresentationClassCharBuffer): Removed try-catch block.
+ (isRepresentationClassReader): Removed try-catch block.
+
2003-02-15 Jesse Rosenstock <jmr@ugcs.caltech.edu>
* java/nio/charset/Charset.java
*/
public boolean isRepresentationClassByteBuffer ()
{
- try
- {
- return ByteBuffer.class.isAssignableFrom (representationClass);
- }
- catch (ClassNotFoundException e)
- {
- return false;
- }
+ return ByteBuffer.class.isAssignableFrom (representationClass);
}
/**
*/
public boolean isRepresentationClassCharBuffer ()
{
- try
- {
- return CharBuffer.class.isAssignableFrom (representationClass);
- }
- catch (ClassNotFoundException e)
- {
- return false;
- }
+ return CharBuffer.class.isAssignableFrom (representationClass);
}
/**
*/
public boolean isRepresentationClassReader ()
{
- try
- {
- return Reader.class.isAssignableFrom (representationClass);
- }
- catch (ClassNotFoundException e)
- {
- return false;
- }
+ return Reader.class.isAssignableFrom (representationClass);
}
} // class DataFlavor