[cp-patches] FYI: Some datatransfer cleanups

Mark Wielaard mark at klomp.org
Tue Jun 27 17:41:29 UTC 2006


Hi,

This fixes various corner cases in datatransfer.

2006-06-27  Mark Wielaard  <mark at klomp.org>

    * java/awt/datatransfer/Clipboard.java (addFlavorListener): Do
    nothing when listener is null.
    (removeFlavorListener): Likewise.

    * java/awt/datatransfer/DataFlavor.java
    (getRepresentationClassFromMime): Renamed to
    getRepresentationClassFromMimeThrows.
    (isRepresentationClassInputStream): Use Class.isAssignableFrom().
    (isRepresentationClassSerializable): Likewise.
    (isFlavorJavaFileListType): Likewise and check primary and
    subtype.
    (getParameter): Parameters are separated by semi-colons.
    (DataFlavor(Class,String,String)): Do some sanity checks.
    (DataFlavor(String,String,ClassLoader)): Call
    getRepresentationClassFromMimeThrows.
    (DataFlavor(String)): Likewise.
    (equals(DataFlavor)): Special case primary type text and charset
    parameter.

Committed,

Mark
-------------- next part --------------
A non-text attachment was scrubbed...
Name: datatransfer-cleanups.patch
Type: text/x-patch
Size: 7778 bytes
Desc: not available
Url : http://developer.classpath.org/pipermail/classpath-patches/attachments/20060627/56688a5e/datatransfer-cleanups-0001.bin


More information about the Classpath-patches mailing list