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

View File

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