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/ui/Table.java | |
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/ui/Table.java')
-rw-r--r-- | server/src/com/vaadin/ui/Table.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/server/src/com/vaadin/ui/Table.java b/server/src/com/vaadin/ui/Table.java index a688b2eb45..b5606b4e67 100644 --- a/server/src/com/vaadin/ui/Table.java +++ b/server/src/com/vaadin/ui/Table.java @@ -623,7 +623,7 @@ public class Table extends AbstractSelect implements Action.Container, * @param visibleColumns * the Array of shown property id:s. */ - public void setVisibleColumns(Object[] visibleColumns) { + public void setVisibleColumns(Object... visibleColumns) { // Visible columns must exist if (visibleColumns == null) { @@ -722,7 +722,7 @@ public class Table extends AbstractSelect implements Action.Container, * the Array of column headers that match the * {@link #getVisibleColumns()} method. */ - public void setColumnHeaders(String[] columnHeaders) { + public void setColumnHeaders(String... columnHeaders) { if (columnHeaders.length != visibleColumns.size()) { throw new IllegalArgumentException( @@ -781,7 +781,7 @@ public class Table extends AbstractSelect implements Action.Container, * the Array of icons that match the {@link #getVisibleColumns()} * . */ - public void setColumnIcons(Resource[] columnIcons) { + public void setColumnIcons(Resource... columnIcons) { if (columnIcons.length != visibleColumns.size()) { throw new IllegalArgumentException( |