mirror of
https://github.com/apache/commons-lang.git
synced 2025-02-08 19:14:52 +00:00
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 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()]);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user