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

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

*** 87,102 **** structure. */ long ctxt = getNativeDragContext(); /* If the event was not consumed, send a response to the source. */ try { if (ctxt != 0 && !e.isConsumed()) { ! Iterator dropTargetProtocols = XDragAndDropProtocols.getDropTargetProtocols(); while (dropTargetProtocols.hasNext()) { XDropTargetProtocol dropTargetProtocol = ! (XDropTargetProtocol)dropTargetProtocols.next(); if (dropTargetProtocol.sendResponse(ctxt, e.getID(), returnValue)) { break; } } --- 87,102 ---- structure. */ long ctxt = getNativeDragContext(); /* If the event was not consumed, send a response to the source. */ try { if (ctxt != 0 && !e.isConsumed()) { ! Iterator<XDropTargetProtocol> dropTargetProtocols = XDragAndDropProtocols.getDropTargetProtocols(); while (dropTargetProtocols.hasNext()) { XDropTargetProtocol dropTargetProtocol = ! dropTargetProtocols.next(); if (dropTargetProtocol.sendResponse(ctxt, e.getID(), returnValue)) { break; } }
*** 114,129 **** structure. */ long ctxt = getNativeDragContext(); if (ctxt != 0) { try { ! Iterator dropTargetProtocols = XDragAndDropProtocols.getDropTargetProtocols(); while (dropTargetProtocols.hasNext()) { XDropTargetProtocol dropTargetProtocol = ! (XDropTargetProtocol)dropTargetProtocols.next(); if (dropTargetProtocol.sendDropDone(ctxt, success, dropAction)) { break; } } --- 114,129 ---- structure. */ long ctxt = getNativeDragContext(); if (ctxt != 0) { try { ! Iterator<XDropTargetProtocol> dropTargetProtocols = XDragAndDropProtocols.getDropTargetProtocols(); while (dropTargetProtocols.hasNext()) { XDropTargetProtocol dropTargetProtocol = ! dropTargetProtocols.next(); if (dropTargetProtocol.sendDropDone(ctxt, success, dropAction)) { break; } }
*** 138,153 **** /* The native context is the pointer to the XClientMessageEvent structure. */ long ctxt = getNativeDragContext(); if (ctxt != 0) { ! Iterator dropTargetProtocols = XDragAndDropProtocols.getDropTargetProtocols(); while (dropTargetProtocols.hasNext()) { XDropTargetProtocol dropTargetProtocol = ! (XDropTargetProtocol)dropTargetProtocols.next(); // getData throws IAE if ctxt is not for this protocol. try { return dropTargetProtocol.getData(ctxt, format); } catch (IllegalArgumentException iae) { } --- 138,153 ---- /* The native context is the pointer to the XClientMessageEvent structure. */ long ctxt = getNativeDragContext(); if (ctxt != 0) { ! Iterator<XDropTargetProtocol> dropTargetProtocols = XDragAndDropProtocols.getDropTargetProtocols(); while (dropTargetProtocols.hasNext()) { XDropTargetProtocol dropTargetProtocol = ! dropTargetProtocols.next(); // getData throws IAE if ctxt is not for this protocol. try { return dropTargetProtocol.getData(ctxt, format); } catch (IllegalArgumentException iae) { }
*** 219,234 **** return false; } public void forwardEventToEmbedded(long embedded, long ctxt, int eventID) { ! Iterator dropTargetProtocols = XDragAndDropProtocols.getDropTargetProtocols(); while (dropTargetProtocols.hasNext()) { ! XDropTargetProtocol dropTargetProtocol = ! (XDropTargetProtocol)dropTargetProtocols.next(); if (dropTargetProtocol.forwardEventToEmbedded(embedded, ctxt, eventID)) { break; } } --- 219,233 ---- return false; } public void forwardEventToEmbedded(long embedded, long ctxt, int eventID) { ! Iterator<XDropTargetProtocol> dropTargetProtocols = XDragAndDropProtocols.getDropTargetProtocols(); while (dropTargetProtocols.hasNext()) { ! XDropTargetProtocol dropTargetProtocol = dropTargetProtocols.next(); if (dropTargetProtocol.forwardEventToEmbedded(embedded, ctxt, eventID)) { break; } }