diff options
author | Per-Åke Minborg <minborg@speedment.com> | 2016-10-27 22:42:59 -0700 |
---|---|---|
committer | Pekka Hyvönen <pekka@vaadin.com> | 2016-11-02 13:10:20 +0000 |
commit | 526bd08524eeb2b9bd999d3e56969775088ba7a6 (patch) | |
tree | 1a026fcbef942deecb040c1f48a3848fce70c800 /server/src/main/java/com/vaadin/event | |
parent | 4bd1ce19ebd49a291ba14c955e0b35b6a58d221b (diff) | |
download | vaadin-framework-526bd08524eeb2b9bd999d3e56969775088ba7a6.tar.gz vaadin-framework-526bd08524eeb2b9bd999d3e56969775088ba7a6.zip |
Remove redundant casts
Change-Id: I80b73b653e97904605dc62484a7448f3bfbf7211
Diffstat (limited to 'server/src/main/java/com/vaadin/event')
-rw-r--r-- | server/src/main/java/com/vaadin/event/dd/acceptcriteria/SourceIs.java | 4 | ||||
-rw-r--r-- | server/src/main/java/com/vaadin/event/dd/acceptcriteria/SourceIsTarget.java | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/server/src/main/java/com/vaadin/event/dd/acceptcriteria/SourceIs.java b/server/src/main/java/com/vaadin/event/dd/acceptcriteria/SourceIs.java index 6213501112..eaccceaca2 100644 --- a/server/src/main/java/com/vaadin/event/dd/acceptcriteria/SourceIs.java +++ b/server/src/main/java/com/vaadin/event/dd/acceptcriteria/SourceIs.java @@ -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; diff --git a/server/src/main/java/com/vaadin/event/dd/acceptcriteria/SourceIsTarget.java b/server/src/main/java/com/vaadin/event/dd/acceptcriteria/SourceIsTarget.java index 39fa9cb23e..95fbaab85e 100644 --- a/server/src/main/java/com/vaadin/event/dd/acceptcriteria/SourceIsTarget.java +++ b/server/src/main/java/com/vaadin/event/dd/acceptcriteria/SourceIsTarget.java @@ -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; } |