Removed unnecessary private toArray method. It was only invoked from one location. LANG-491

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@895130 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Henri Yandell 2010-01-02 06:02:33 +00:00
parent e539bde396
commit 99b21a45ef

View File

@ -83,15 +83,6 @@ public ExceptionUtils() {
} }
//----------------------------------------------------------------------- //-----------------------------------------------------------------------
/**
* 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>Returns the default names used when searching for the cause of an exception.</p>
* *
@ -670,7 +661,7 @@ static String[] getStackFrames(String stackTrace) {
while (frames.hasMoreTokens()) { while (frames.hasMoreTokens()) {
list.add(frames.nextToken()); list.add(frames.nextToken());
} }
return toArray(list); return list.toArray(new String[list.size()]);
} }
/** /**