summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog7
-rw-r--r--java/awt/datatransfer/DataFlavor.java27
2 files changed, 10 insertions, 24 deletions
diff --git a/ChangeLog b/ChangeLog
index 89b099dd6..63f53a4c3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
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 Michael Koch <konqueror@gmx.de>
+
* java/awt/CheckboxMenuItem.java
(CheckBoxMenuItem): Dont implement Serializable.
(getListeners): New method,
diff --git a/java/awt/datatransfer/DataFlavor.java b/java/awt/datatransfer/DataFlavor.java
index f542bd892..7239adde7 100644
--- a/java/awt/datatransfer/DataFlavor.java
+++ b/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