summaryrefslogtreecommitdiffstats
path: root/server/src/com/vaadin/event/ShortcutAction.java
diff options
context:
space:
mode:
authorArtur Signell <artur@vaadin.com>2013-06-26 09:41:17 +0300
committerVaadin Code Review <review@vaadin.com>2013-06-26 07:54:32 +0000
commit6c10136ae17f62c37c65805ff8847d86ce1733f7 (patch)
treefd40db14693bf405447d1255cc3bdc703bafb6f2 /server/src/com/vaadin/event/ShortcutAction.java
parent172d704fe372885e81cc83fe768281e40decfb3a (diff)
downloadvaadin-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/event/ShortcutAction.java')
-rw-r--r--server/src/com/vaadin/event/ShortcutAction.java6
1 files changed, 3 insertions, 3 deletions
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