diff options
-rw-r--r-- | qadevOOo/runner/graphical/IniFile.java | 7 | ||||
-rw-r--r-- | qadevOOo/runner/share/DescGetter.java | 7 | ||||
-rw-r--r-- | toolkit/test/accessibility/AccTreeNode.java | 6 |
3 files changed, 8 insertions, 12 deletions
diff --git a/qadevOOo/runner/graphical/IniFile.java b/qadevOOo/runner/graphical/IniFile.java index f6b371f342e2..fe2df6e62878 100644 --- a/qadevOOo/runner/graphical/IniFile.java +++ b/qadevOOo/runner/graphical/IniFile.java @@ -19,7 +19,9 @@ package graphical; import java.io.File; import java.io.RandomAccessFile; + import java.util.ArrayList; +import java.util.Arrays; import java.util.Enumeration; /** @@ -55,10 +57,7 @@ public class IniFile implements Enumeration<String> if (m_aList.isEmpty()) { // can only insert if there is nothing else already in the ini file - for (int i = 0; i < _aList.length; i++) - { - m_aList.add(_aList[i]); - } + m_aList.addAll(Arrays.asList(_aList)); } } diff --git a/qadevOOo/runner/share/DescGetter.java b/qadevOOo/runner/share/DescGetter.java index 53e0f93c0e28..892a33dc50e0 100644 --- a/qadevOOo/runner/share/DescGetter.java +++ b/qadevOOo/runner/share/DescGetter.java @@ -19,7 +19,9 @@ package share; import java.io.BufferedReader; import java.io.FileReader; + import java.util.ArrayList; +import java.util.Arrays; import java.util.StringTokenizer; /** @@ -108,10 +110,7 @@ public abstract class DescGetter line.length()).trim(), descPath, debug); - for (int i = 0; i < subs.length; i++) - { - entryList.add(subs[i]); - } + entryList.addAll(Arrays.asList(subs)); } else if (line.startsWith("-p")) { 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)); } } |