Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKarsten Thoms2017-09-12 19:53:59 +0000
committerSopot Cela2017-09-15 12:34:36 +0000
commite341a61b8c18b906a60eee6886b5d0fc452797e1 (patch)
tree0f045e9031df603bb04442d322da96d390aaf436 /org.eclipse.ui.editors
parent436cf72b5d16b64ce88662e468a4839ed8dd99e9 (diff)
downloadeclipse.platform.text-e341a61b8c18b906a60eee6886b5d0fc452797e1.tar.gz
eclipse.platform.text-e341a61b8c18b906a60eee6886b5d0fc452797e1.tar.xz
eclipse.platform.text-e341a61b8c18b906a60eee6886b5d0fc452797e1.zip
Bug 522212 - Resolve redundant null checks
Change-Id: Iaea3ee9df3771e40bc1d5bc58cd96b871c576406 Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
Diffstat (limited to 'org.eclipse.ui.editors')
-rw-r--r--org.eclipse.ui.editors/src/org/eclipse/ui/internal/editors/text/SelectResourcesDialog.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/org.eclipse.ui.editors/src/org/eclipse/ui/internal/editors/text/SelectResourcesDialog.java b/org.eclipse.ui.editors/src/org/eclipse/ui/internal/editors/text/SelectResourcesDialog.java
index bb651be0b..7a3db4da6 100644
--- a/org.eclipse.ui.editors/src/org/eclipse/ui/internal/editors/text/SelectResourcesDialog.java
+++ b/org.eclipse.ui.editors/src/org/eclipse/ui/internal/editors/text/SelectResourcesDialog.java
@@ -349,7 +349,7 @@ class SelectResourcesDialog extends Dialog {
private void updateSelectionCount() {
List<Object> listItems= fResourceGroup.getAllCheckedListItems();
- int checkedFiles= listItems == null ? 0 : listItems.size();
+ int checkedFiles= listItems.size();
StringBuilder buffer= new StringBuilder();
switch (checkedFiles) {
case 0:

Back to the top