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:
parent
e539bde396
commit
99b21a45ef
|
@ -83,15 +83,6 @@ public class 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>
|
||||
*
|
||||
|
@ -670,7 +661,7 @@ public class ExceptionUtils {
|
|||
while (frames.hasMoreTokens()) {
|
||||
list.add(frames.nextToken());
|
||||
}
|
||||
return toArray(list);
|
||||
return list.toArray(new String[list.size()]);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue