diff options
author | Robert Antoni Buj i Gelonch <robert.buj@gmail.com> | 2014-10-13 16:05:18 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2014-10-13 15:18:56 +0000 |
commit | d0be30e8eec9d982501e8727df05962572c7acc6 (patch) | |
tree | b906024d4c2da051f2d0712f7347c5dde4eb51c0 /toolkit/test/accessibility | |
parent | f6388e15bf95326d2a712453dc2c17b010801533 (diff) |
java: Collections.addAll for adding an array of elements to a Collection
Change-Id: I4689aa73e1e261c6461e04b9e814ffefa5817c09
Reviewed-on: https://gerrit.libreoffice.org/11953
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'toolkit/test/accessibility')
-rw-r--r-- | toolkit/test/accessibility/AccTreeNode.java | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/toolkit/test/accessibility/AccTreeNode.java b/toolkit/test/accessibility/AccTreeNode.java index 136f872a68d7..73fa129ceaea 100644 --- a/toolkit/test/accessibility/AccTreeNode.java +++ b/toolkit/test/accessibility/AccTreeNode.java @@ -17,6 +17,7 @@ */ import java.util.ArrayList; +import java.util.Arrays; import com.sun.star.accessibility.XAccessible; import com.sun.star.accessibility.XAccessibleComponent; @@ -299,10 +300,7 @@ class AccTreeNode HandlerDescriptor aDescriptor = getHandlerDescriptor (i); NodeHandler aHandler = aDescriptor.maHandler; String[] aHandlerActions = aHandler.getActions (this); - for(int j = 0; j < aHandlerActions.length; j++ ) - { - aActions.add( aHandlerActions[j] ); - } + aActions.addAll(Arrays.asList(aHandlerActions)); } } |