Commit c68c712e by Michael Koch Committed by Michael Koch

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
parent a5915965
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> 2003-02-15 Jesse Rosenstock <jmr@ugcs.caltech.edu>
* java/nio/charset/Charset.java * java/nio/charset/Charset.java
......
...@@ -1009,15 +1009,8 @@ public Reader getReaderForText(Transferable transferable) ...@@ -1009,15 +1009,8 @@ public Reader getReaderForText(Transferable transferable)
*/ */
public boolean isRepresentationClassByteBuffer () public boolean isRepresentationClassByteBuffer ()
{ {
try
{
return ByteBuffer.class.isAssignableFrom (representationClass); return ByteBuffer.class.isAssignableFrom (representationClass);
} }
catch (ClassNotFoundException e)
{
return false;
}
}
/** /**
* Returns whether the representation class for this DataFlavor is * Returns whether the representation class for this DataFlavor is
...@@ -1027,15 +1020,8 @@ public Reader getReaderForText(Transferable transferable) ...@@ -1027,15 +1020,8 @@ public Reader getReaderForText(Transferable transferable)
*/ */
public boolean isRepresentationClassCharBuffer () public boolean isRepresentationClassCharBuffer ()
{ {
try
{
return CharBuffer.class.isAssignableFrom (representationClass); return CharBuffer.class.isAssignableFrom (representationClass);
} }
catch (ClassNotFoundException e)
{
return false;
}
}
/** /**
* Returns whether the representation class for this DataFlavor is * Returns whether the representation class for this DataFlavor is
...@@ -1045,15 +1031,8 @@ public Reader getReaderForText(Transferable transferable) ...@@ -1045,15 +1031,8 @@ public Reader getReaderForText(Transferable transferable)
*/ */
public boolean isRepresentationClassReader () public boolean isRepresentationClassReader ()
{ {
try
{
return Reader.class.isAssignableFrom (representationClass); return Reader.class.isAssignableFrom (representationClass);
} }
catch (ClassNotFoundException e)
{
return false;
}
}
} // class DataFlavor } // class DataFlavor
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment