aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeanderson Candido2014-02-17 09:22:41 (EST)
committerLars Vogel2014-02-17 10:03:39 (EST)
commit96310df07446b72f9a84aed976ab15295f0cca92 (patch)
tree977cffbdbec7fcd14d40930667811fc946611fda
parent7f9660d05db1e94a8d2bb9f5f3d73728ab575cae (diff)
downloadeclipse.platform.ui-96310df07446b72f9a84aed976ab15295f0cca92.zip
eclipse.platform.ui-96310df07446b72f9a84aed976ab15295f0cca92.tar.gz
eclipse.platform.ui-96310df07446b72f9a84aed976ab15295f0cca92.tar.bz2
Bug 428311 - Statement unnecessarily nested on else clauserefs/changes/95/22095/2
Removed unnecessary else clause on methods "listGetSelectionIndices()", "listGetItemCount()", and "getControl()". Change-Id: Ibf6952abb6dba1fcffccdec626635c10d65b816c Signed-off-by: Jeanderson Candido <jeandersonbc@gmail.com>
-rw-r--r--bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/ComboViewer.java9
1 files changed, 3 insertions, 6 deletions
diff --git a/bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/ComboViewer.java b/bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/ComboViewer.java
index 07a3b93..fa827dd 100644
--- a/bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/ComboViewer.java
+++ b/bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/ComboViewer.java
@@ -123,18 +123,16 @@ public class ComboViewer extends AbstractListViewer {
protected int[] listGetSelectionIndices() {
if (combo == null) {
return new int[] { ccombo.getSelectionIndex() };
- } else {
- return new int[] { combo.getSelectionIndex() };
}
+ return new int[] { combo.getSelectionIndex() };
}
@Override
protected int listGetItemCount() {
if (combo == null) {
return ccombo.getItemCount();
- } else {
- return combo.getItemCount();
}
+ return combo.getItemCount();
}
@Override
@@ -171,9 +169,8 @@ public class ComboViewer extends AbstractListViewer {
public Control getControl() {
if (combo == null) {
return ccombo;
- } else {
- return combo;
}
+ return combo;
}
/**