Change-Id: I80b73b653e97904605dc62484a7448f3bfbf7211tags/8.0.0.alpha6
@@ -63,8 +63,8 @@ public class SourceIs extends ClientSideCriterion { | |||
@Override | |||
public boolean accept(DragAndDropEvent dragEvent) { | |||
if (dragEvent.getTransferable() instanceof TransferableImpl) { | |||
Component sourceComponent = ((TransferableImpl) dragEvent | |||
.getTransferable()).getSourceComponent(); | |||
Component sourceComponent = dragEvent | |||
.getTransferable().getSourceComponent(); | |||
for (Component c : components) { | |||
if (c == sourceComponent) { | |||
return true; |
@@ -46,8 +46,8 @@ public class SourceIsTarget extends ClientSideCriterion { | |||
@Override | |||
public boolean accept(DragAndDropEvent dragEvent) { | |||
if (dragEvent.getTransferable() instanceof TransferableImpl) { | |||
Component sourceComponent = ((TransferableImpl) dragEvent | |||
.getTransferable()).getSourceComponent(); | |||
Component sourceComponent = dragEvent | |||
.getTransferable().getSourceComponent(); | |||
DropTarget target = dragEvent.getTargetDetails().getTarget(); | |||
return sourceComponent == target; | |||
} |
@@ -131,8 +131,8 @@ public class ClientRpcWriter implements Serializable { | |||
for (int destIndex = 0, oldIndex = 0, paintableIndex = 0; destIndex < totalCalls; destIndex++) { | |||
if (paintableIndex >= paintablePendingRpc.size() | |||
|| (oldIndex < oldPendingRpc.size() | |||
&& ((Comparable<ClientMethodInvocation>) oldPendingRpc | |||
.get(oldIndex)).compareTo( | |||
&& oldPendingRpc | |||
.get(oldIndex).compareTo( | |||
paintablePendingRpc.get( | |||
paintableIndex)) <= 0)) { | |||
pendingInvocations.add(oldPendingRpc.get(oldIndex++)); |