diff --git a/src/java/org/apache/commons/lang3/exception/ExceptionUtils.java b/src/java/org/apache/commons/lang3/exception/ExceptionUtils.java index 9d37446ce..58f9d227a 100644 --- a/src/java/org/apache/commons/lang3/exception/ExceptionUtils.java +++ b/src/java/org/apache/commons/lang3/exception/ExceptionUtils.java @@ -83,15 +83,6 @@ public class ExceptionUtils { } //----------------------------------------------------------------------- - /** - * Returns the given list as a String[]. - * @param list a list to transform. - * @return the given list as a String[]. - */ - private static String[] toArray(List list) { - return list.toArray(new String[list.size()]); - } - /** *

Returns the default names used when searching for the cause of an exception.

* @@ -670,7 +661,7 @@ public class ExceptionUtils { while (frames.hasMoreTokens()) { list.add(frames.nextToken()); } - return toArray(list); + return list.toArray(new String[list.size()]); } /**