src/solaris/classes/sun/awt/X11/XDragSourceProtocol.java

Print this page
rev 9717 : 8039642: Fix raw and unchecked warnings in sun.awt.*
Reviewed-by:

*** 24,33 **** --- 24,34 ---- */ package sun.awt.X11; import java.awt.datatransfer.Transferable; + import java.awt.datatransfer.DataFlavor; import java.awt.dnd.DnDConstants; import java.awt.dnd.InvalidDnDOperationException; import java.util.Map;
*** 82,92 **** * initialized. * @throws IllegalArgumentException if some argument has invalid value. * @throws XException if some X call failed. */ public final void initializeDrag(int actions, Transferable contents, ! Map formatMap, long[] formats) throws InvalidDnDOperationException, IllegalArgumentException, XException { XToolkit.awtLock(); try { try { --- 83,93 ---- * initialized. * @throws IllegalArgumentException if some argument has invalid value. * @throws XException if some X call failed. */ public final void initializeDrag(int actions, Transferable contents, ! Map<Long, DataFlavor> formatMap, long[] formats) throws InvalidDnDOperationException, IllegalArgumentException, XException { XToolkit.awtLock(); try { try {
*** 108,118 **** } /* The caller must hold AWT_LOCK. */ protected abstract void initializeDragImpl(int actions, Transferable contents, ! Map formatMap, long[] formats) throws InvalidDnDOperationException, IllegalArgumentException, XException; /** * Terminates the current drag operation (if any) and resets the internal * state of this object. --- 109,120 ---- } /* The caller must hold AWT_LOCK. */ protected abstract void initializeDragImpl(int actions, Transferable contents, ! Map<Long, DataFlavor> formatMap, ! long[] formats) throws InvalidDnDOperationException, IllegalArgumentException, XException; /** * Terminates the current drag operation (if any) and resets the internal * state of this object.