src/solaris/classes/sun/awt/X11/XSelection.java
Print this page
rev 9717 : 8039642: Fix raw and unchecked warnings in sun.awt.*
Reviewed-by:
*** 23,32 ****
--- 23,33 ----
* questions.
*/
package sun.awt.X11;
+ import java.awt.datatransfer.DataFlavor;
import java.awt.datatransfer.Transferable;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
*** 85,95 ****
*/
/* The contents supplied by the current owner. */
private Transferable contents = null;
/* The format-to-flavor map for the current owner. */
! private Map formatMap = null;
/* The formats supported by the current owner was set. */
private long[] formats = null;
/* The AppContext in which the current owner was set. */
private AppContext appContext = null;
// The X server time of the last XConvertSelection() call;
--- 86,96 ----
*/
/* The contents supplied by the current owner. */
private Transferable contents = null;
/* The format-to-flavor map for the current owner. */
! private Map<Long, DataFlavor> formatMap = null;
/* The formats supported by the current owner was set. */
private long[] formats = null;
/* The AppContext in which the current owner was set. */
private AppContext appContext = null;
// The X server time of the last XConvertSelection() call;
*** 132,142 ****
public XAtom getSelectionAtom() {
return selectionAtom;
}
! public synchronized boolean setOwner(Transferable contents, Map formatMap,
long[] formats, long time)
{
long owner = XWindow.getXAWTRootWindow().getWindow();
long selection = selectionAtom.getAtom();
--- 133,144 ----
public XAtom getSelectionAtom() {
return selectionAtom;
}
! public synchronized boolean setOwner(Transferable contents,
! Map<Long, DataFlavor> formatMap,
long[] formats, long time)
{
long owner = XWindow.getXAWTRootWindow().getWindow();
long selection = selectionAtom.getAtom();