Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrsuen2007-09-12 13:54:53 -0400
committerrsuen2007-09-12 13:54:53 -0400
commit23de2073b9e2a67f77af3b675be755072740b410 (patch)
tree8cd44484bca7d0e1b60cdd72d7de840d962ff1df
parent0cde1e9b52c57ab310fca5fc00edf94531e6d83c (diff)
downloadorg.eclipse.ecf-23de2073b9e2a67f77af3b675be755072740b410.tar.gz
org.eclipse.ecf-23de2073b9e2a67f77af3b675be755072740b410.tar.xz
org.eclipse.ecf-23de2073b9e2a67f77af3b675be755072740b410.zip
Removing a redundant null check as 'target' can only be an instance of an IRosterItem if it is not null.
-rw-r--r--framework/bundles/org.eclipse.ecf.presence.ui/src/org/eclipse/ecf/presence/ui/MultiRosterView.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/framework/bundles/org.eclipse.ecf.presence.ui/src/org/eclipse/ecf/presence/ui/MultiRosterView.java b/framework/bundles/org.eclipse.ecf.presence.ui/src/org/eclipse/ecf/presence/ui/MultiRosterView.java
index 2f669f330..619e4fe0b 100644
--- a/framework/bundles/org.eclipse.ecf.presence.ui/src/org/eclipse/ecf/presence/ui/MultiRosterView.java
+++ b/framework/bundles/org.eclipse.ecf.presence.ui/src/org/eclipse/ecf/presence/ui/MultiRosterView.java
@@ -205,7 +205,7 @@ public class MultiRosterView extends ViewPart implements IMultiRosterViewPart {
}
public boolean validateDrop(Object target, int operation, TransferData transferType) {
- if (target != null && target instanceof IRosterItem) {
+ if (target instanceof IRosterItem) {
rosterPerformDrop.clear();
boolean result = false;
for (Iterator i = rosterDropTargets.iterator(); i.hasNext();) {

Back to the top