Patch submitted by Fredrik Westermarck <fredrik.westermarck@mdh.se> that

replaces a TODO now that we have a SystemUtils.


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137091 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Henri Yandell 2002-10-09 03:29:18 +00:00
parent 9f5928035e
commit ed94aba059
1 changed files with 3 additions and 2 deletions

View File

@ -65,6 +65,8 @@ import java.util.LinkedList;
import java.util.List;
import java.util.StringTokenizer;
import org.apache.commons.lang.SystemUtils;
/**
* Utility routines for manipulating <code>Throwable</code> objects.
*
@ -405,8 +407,7 @@ public class ExceptionUtils
*/
static String[] getStackFrames(String stackTrace)
{
// TODO: Use constant from org.apache.commons.lang.SystemUtils.
String linebreak = System.getProperty("line.separator");
String linebreak = SystemUtils.LINE_SEPARATOR;
StringTokenizer frames = new StringTokenizer(stackTrace, linebreak);
List list = new LinkedList();
while (frames.hasMoreTokens())