@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;
@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;
}
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++));