Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Vogel2015-12-03 08:57:51 +0000
committerAlexander Kurtakov2015-12-03 09:31:12 +0000
commit23c7a0b716afce6ddef36e18027b330087ac0c96 (patch)
tree92a7ac517c6f56d8e0865b8650b796e7cdade5f3 /bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse
parent3fcbd57c75f4617d6ea12d7354b1b4b64834d7d3 (diff)
downloadeclipse.platform.swt-23c7a0b716afce6ddef36e18027b330087ac0c96.tar.gz
eclipse.platform.swt-23c7a0b716afce6ddef36e18027b330087ac0c96.tar.xz
eclipse.platform.swt-23c7a0b716afce6ddef36e18027b330087ac0c96.zip
Bug 483540 - Change Combo#setItems to varargsI20151203-1230I20151203-0800
Method setItems already defines that null is invalid so it can be adjusted it to use varargs. Change-Id: I43a4fa68b5808ab2ae1ee4e987dcec912440cb37 Signed-off-by: Lars Vogel <Lars.Vogel@vogella.com>
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Combo.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Combo.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Combo.java
index 4fff6dd15c..af4e97841a 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Combo.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Combo.java
@@ -7,6 +7,7 @@
*
* Contributors:
* IBM Corporation - initial API and implementation
+ * Lars Vogel <Lars.Vogel@vogella.com> - Bug 483540
*******************************************************************************/
package org.eclipse.swt.widgets;
@@ -2094,7 +2095,7 @@ public void setItem (int index, String string) {
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
*/
-public void setItems (String [] items) {
+public void setItems (String... items) {
checkWidget ();
if (items == null) error (SWT.ERROR_NULL_ARGUMENT);
for (int i=0; i<items.length; i++) {

Back to the top