diff options
author | Artur Signell <artur@vaadin.com> | 2013-06-26 09:41:17 +0300 |
---|---|---|
committer | Vaadin Code Review <review@vaadin.com> | 2013-06-26 07:54:32 +0000 |
commit | 6c10136ae17f62c37c65805ff8847d86ce1733f7 (patch) | |
tree | fd40db14693bf405447d1255cc3bdc703bafb6f2 /server/src/com/vaadin/data/util | |
parent | 172d704fe372885e81cc83fe768281e40decfb3a (diff) | |
download | vaadin-framework-6c10136ae17f62c37c65805ff8847d86ce1733f7.tar.gz vaadin-framework-6c10136ae17f62c37c65805ff8847d86ce1733f7.zip |
Use varargs instead of array where appropriate (#4513)
Change-Id: Ide9349b6afa7e56ae04b7727134971ebf81c0b03
Diffstat (limited to 'server/src/com/vaadin/data/util')
-rw-r--r-- | server/src/com/vaadin/data/util/BeanItem.java | 2 | ||||
-rw-r--r-- | server/src/com/vaadin/data/util/sqlcontainer/RowId.java | 2 | ||||
-rw-r--r-- | server/src/com/vaadin/data/util/sqlcontainer/TemporaryRowId.java | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/server/src/com/vaadin/data/util/BeanItem.java b/server/src/com/vaadin/data/util/BeanItem.java index 24eb2505e4..fc51be8f36 100644 --- a/server/src/com/vaadin/data/util/BeanItem.java +++ b/server/src/com/vaadin/data/util/BeanItem.java @@ -141,7 +141,7 @@ public class BeanItem<BT> extends PropertysetItem { * @param propertyIds * ids of the properties. */ - public BeanItem(BT bean, String[] propertyIds) { + public BeanItem(BT bean, String... propertyIds) { this(bean, Arrays.asList(propertyIds)); } diff --git a/server/src/com/vaadin/data/util/sqlcontainer/RowId.java b/server/src/com/vaadin/data/util/sqlcontainer/RowId.java index 8fd8eec697..c375bd5a4a 100644 --- a/server/src/com/vaadin/data/util/sqlcontainer/RowId.java +++ b/server/src/com/vaadin/data/util/sqlcontainer/RowId.java @@ -34,7 +34,7 @@ public class RowId implements Serializable { protected RowId() { } - public RowId(Object[] id) { + public RowId(Object... id) { if (id == null) { throw new IllegalArgumentException("id parameter must not be null!"); } diff --git a/server/src/com/vaadin/data/util/sqlcontainer/TemporaryRowId.java b/server/src/com/vaadin/data/util/sqlcontainer/TemporaryRowId.java index fbf53121da..03f7f23fdd 100644 --- a/server/src/com/vaadin/data/util/sqlcontainer/TemporaryRowId.java +++ b/server/src/com/vaadin/data/util/sqlcontainer/TemporaryRowId.java @@ -18,7 +18,7 @@ package com.vaadin.data.util.sqlcontainer; public class TemporaryRowId extends RowId { private static final long serialVersionUID = -641983830469018329L; - public TemporaryRowId(Object[] id) { + public TemporaryRowId(Object... id) { super(id); } |