Author: bayard
Date: Sat Jan  2 06:02:33 2010
New Revision: 895130

URL: http://svn.apache.org/viewvc?rev=895130&view=rev
Log:
Removed unnecessary private toArray method. It was only invoked from one 
location. LANG-491

Modified:
    
commons/proper/lang/trunk/src/java/org/apache/commons/lang3/exception/ExceptionUtils.java

Modified: 
commons/proper/lang/trunk/src/java/org/apache/commons/lang3/exception/ExceptionUtils.java
URL: 
http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/java/org/apache/commons/lang3/exception/ExceptionUtils.java?rev=895130&r1=895129&r2=895130&view=diff
==============================================================================
--- 
commons/proper/lang/trunk/src/java/org/apache/commons/lang3/exception/ExceptionUtils.java
 (original)
+++ 
commons/proper/lang/trunk/src/java/org/apache/commons/lang3/exception/ExceptionUtils.java
 Sat Jan  2 06:02:33 2010
@@ -84,15 +84,6 @@
 
     //-----------------------------------------------------------------------
     /**
-     * Returns the given list as a <code>String[]</code>.
-     * @param list a list to transform.
-     * @return the given list as a <code>String[]</code>.
-     */
-    private static String[] toArray(List<String> list) {
-        return list.toArray(new String[list.size()]);
-    }
-
-    /**
      * <p>Returns the default names used when searching for the cause of an 
exception.</p>
      *
      * <p>This may be modified and used in the overloaded getCause(Throwable, 
String[]) method.</p>
@@ -670,7 +661,7 @@
         while (frames.hasMoreTokens()) {
             list.add(frames.nextToken());
         }
-        return toArray(list);
+        return list.toArray(new String[list.size()]);
     }
 
     /**


Reply via email to