From 6c10136ae17f62c37c65805ff8847d86ce1733f7 Mon Sep 17 00:00:00 2001 From: Artur Signell Date: Wed, 26 Jun 2013 09:41:17 +0300 Subject: Use varargs instead of array where appropriate (#4513) Change-Id: Ide9349b6afa7e56ae04b7727134971ebf81c0b03 --- server/src/com/vaadin/event/ShortcutAction.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'server/src/com/vaadin/event/ShortcutAction.java') diff --git a/server/src/com/vaadin/event/ShortcutAction.java b/server/src/com/vaadin/event/ShortcutAction.java index 78eec53112..5ec4d3bfa0 100644 --- a/server/src/com/vaadin/event/ShortcutAction.java +++ b/server/src/com/vaadin/event/ShortcutAction.java @@ -70,7 +70,7 @@ public class ShortcutAction extends Action { * @param m * optional modifier keys */ - public ShortcutAction(String caption, int kc, int[] m) { + public ShortcutAction(String caption, int kc, int... m) { super(caption); keyCode = kc; modifiers = m; @@ -91,7 +91,7 @@ public class ShortcutAction extends Action { * @param m * optional modifier keys */ - public ShortcutAction(String caption, Resource icon, int kc, int[] m) { + public ShortcutAction(String caption, Resource icon, int kc, int... m) { super(caption, icon); keyCode = kc; modifiers = m; @@ -174,7 +174,7 @@ public class ShortcutAction extends Action { * @param shorthandCaption * @param modifierKeys */ - public ShortcutAction(String shorthandCaption, int[] modifierKeys) { + public ShortcutAction(String shorthandCaption, int... modifierKeys) { // && -> & etc super(SHORTHAND_ESCAPE.matcher(shorthandCaption).replaceAll("$1$2$3")); // replace escaped chars with something that won't accidentally match -- cgit v1.2.3