diff options
author | Michael Koch <konqueror@gmx.de> | 2003-02-15 13:26:26 +0000 |
---|---|---|
committer | Michael Koch <mkoch@gcc.gnu.org> | 2003-02-15 13:26:26 +0000 |
commit | c68c712ec33eef6239647b669015ea9af737c939 (patch) | |
tree | 4956d8e18e8c0c5c143f352a5ba3a30e3eb50228 /libjava/java/awt/datatransfer | |
parent | a59159654bf123af6626677a0cf567b46d073990 (diff) | |
download | gcc-c68c712ec33eef6239647b669015ea9af737c939.zip gcc-c68c712ec33eef6239647b669015ea9af737c939.tar.gz gcc-c68c712ec33eef6239647b669015ea9af737c939.tar.bz2 |
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.
From-SVN: r62935
Diffstat (limited to 'libjava/java/awt/datatransfer')
-rw-r--r-- | libjava/java/awt/datatransfer/DataFlavor.java | 27 |
1 files changed, 3 insertions, 24 deletions
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 |