diff options
-rw-r--r-- | libjava/ChangeLog | 7 | ||||
-rw-r--r-- | libjava/java/awt/datatransfer/DataFlavor.java | 27 |
2 files changed, 10 insertions, 24 deletions
diff --git a/libjava/ChangeLog b/libjava/ChangeLog index 331f7d0..2cb7951 100644 --- a/libjava/ChangeLog +++ b/libjava/ChangeLog @@ -1,3 +1,10 @@ +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 diff --git a/libjava/java/awt/datatransfer/DataFlavor.java b/libjava/java/awt/datatransfer/DataFlavor.java index f542bd8..7239add 100644 --- a/libjava/java/awt/datatransfer/DataFlavor.java +++ b/libjava/java/awt/datatransfer/DataFlavor.java @@ -1009,14 +1009,7 @@ public Reader getReaderForText(Transferable transferable) */ public boolean isRepresentationClassByteBuffer () { - try - { - return ByteBuffer.class.isAssignableFrom (representationClass); - } - catch (ClassNotFoundException e) - { - return false; - } + return ByteBuffer.class.isAssignableFrom (representationClass); } /** @@ -1027,14 +1020,7 @@ public Reader getReaderForText(Transferable transferable) */ public boolean isRepresentationClassCharBuffer () { - try - { - return CharBuffer.class.isAssignableFrom (representationClass); - } - catch (ClassNotFoundException e) - { - return false; - } + return CharBuffer.class.isAssignableFrom (representationClass); } /** @@ -1045,14 +1031,7 @@ public Reader getReaderForText(Transferable transferable) */ public boolean isRepresentationClassReader () { - try - { - return Reader.class.isAssignableFrom (representationClass); - } - catch (ClassNotFoundException e) - { - return false; - } + return Reader.class.isAssignableFrom (representationClass); } } // class DataFlavor |