This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] java.awt.datatransfer.DataTransfer


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi list,


I commited a merge back from classpath for 
java.awt.datatransfer.DataTransfer. It made classpath compile with 
jikes. I hope this was okay.


Michael
- -- 
Homepage: http://www.worldforge.org/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE+TkBpWSOgCCdjSDsRAmtSAJ95KkeJuFY+/w65CR4IBtmEcZKROwCfdwKC
1e424XLvhkCDGIZWG80mQvc=
=NnBr
-----END PGP SIGNATURE-----
Index: ChangeLog
===================================================================
RCS file: /cvs/gcc/gcc/libjava/ChangeLog,v
retrieving revision 1.1707
diff -u -r1.1707 ChangeLog
--- ChangeLog	15 Feb 2003 09:39:51 -0000	1.1707
+++ ChangeLog	15 Feb 2003 13:26:08 -0000
@@ -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
Index: java/awt/datatransfer/DataFlavor.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/java/awt/datatransfer/DataFlavor.java,v
retrieving revision 1.6
diff -u -r1.6 DataFlavor.java
--- java/awt/datatransfer/DataFlavor.java	15 Feb 2003 09:21:55 -0000	1.6
+++ java/awt/datatransfer/DataFlavor.java	15 Feb 2003 13:26:08 -0000
@@ -1009,14 +1009,7 @@
    */
   public boolean isRepresentationClassByteBuffer ()
   {
-    try
-      {
-        return ByteBuffer.class.isAssignableFrom (representationClass);
-      }
-    catch (ClassNotFoundException e)
-      {
-        return false;
-      }
+    return ByteBuffer.class.isAssignableFrom (representationClass);
   }
 
   /**
@@ -1027,14 +1020,7 @@
    */
   public boolean isRepresentationClassCharBuffer ()
   {
-    try
-      {
-        return CharBuffer.class.isAssignableFrom (representationClass);
-      }
-    catch (ClassNotFoundException e)
-      {
-        return false;
-      }
+    return CharBuffer.class.isAssignableFrom (representationClass);
   }
 
   /**
@@ -1045,14 +1031,7 @@
    */
   public boolean isRepresentationClassReader ()
   {
-    try
-      {
-        return Reader.class.isAssignableFrom (representationClass);
-      }
-    catch (ClassNotFoundException e)
-      {
-        return false;
-      }
+    return Reader.class.isAssignableFrom (representationClass);
   }
 
 } // class DataFlavor

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]